Re: Writing scripts in Linux



On Sun, 21 Oct 2007 23:02:58 GMT, Rich Leitner wrote:

Okay, I'm a bit new to shell scripting but learning. What's wrong with
writing a shell script as root so long as the script does not have root
privileges itself?


Shell scripts execute with the privs of the user running them.
.



Relevant Pages

  • Re: shell script automatically logging in...
    ... | I'm new at shell scripting and don't really have the time to learn it ... | ...Now logged in as root ... suiting this needs - even changed my sudo editor in the process :-), ... logging in between machines or just within the same machine. ...
    (comp.os.linux.development.system)
  • Re: shell script automatically logging in...
    ... |> | I'm new at shell scripting and don't really have the time to learn it ... |> | ...Now logged in as root ... | suiting this needs - even changed my sudo editor in the process :-), ... feeding the password into the SSH client. ...
    (comp.os.linux.development.system)
  • Problems starting samba
    ... [root ~]# service smb start ... I'm not very familiar with nice or shell scripting, ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • shell script automatically logging in...
    ... I'm new at shell scripting and don't really have the time to learn it ... but I need to login in and provide a password automatically ... ....Now logged in as root ...
    (comp.os.linux.development.system)
  • seeking shell scripting resources
    ... I'm new to running my own unix systems and would like to start learning the ... ropes on shell scripting. ... I've looked at the handbook and a few other ...
    (freebsd-questions)