Mailinglist Archive: opensuse (3627 mails)
| < Previous | Next > |
Re: [SLE] Use of Linux
- From: zentara <zentara@xxxxxxxxxxx>
- Date: Fri, 29 Jun 2001 9:37:4 -0500
- Message-id: <20010629133542.433E9E6413@xxxxxxxxxxxx>
At 6/29/01 1:11:00 PM, you wrote:
>Dear Lists,
>
>This is perhaps slightly off topic, so bear with me. :-)
>
>I am interested to know, how many of you, actually use a non-root account to
>get work done. Since there is so many risks of constantly using a root
>account, how in the world are you supposed to get work done without being
>logged in as root??
>
>For example, most of my bash scripts that I write, require the use of
>certain files, which, if not ran as root, would require me to run numerous
>chmod/chgrp commands to get them to run.
>
>How have people, gotten around this??
>
I'm just an amateur, but here is what I do:
1. "su" to root when you need to run the scripts
2. run the scripts as a root cron job
3. if you are at your console, keep a root login on 1 console(say alt-F1)
and run as a user on another virtual console. If you are telnetting in, use
ssh to login as root.. Whenever you need to run a root script, hit <alt-F1>.
4. Then there is the "SUID" file permissions, which can be a security risk, but
it's an option.
5. Setup a special group for the scripts which allow selected users to run them.
I'm sure there are more ways.
zentara
NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net
>Dear Lists,
>
>This is perhaps slightly off topic, so bear with me. :-)
>
>I am interested to know, how many of you, actually use a non-root account to
>get work done. Since there is so many risks of constantly using a root
>account, how in the world are you supposed to get work done without being
>logged in as root??
>
>For example, most of my bash scripts that I write, require the use of
>certain files, which, if not ran as root, would require me to run numerous
>chmod/chgrp commands to get them to run.
>
>How have people, gotten around this??
>
I'm just an amateur, but here is what I do:
1. "su" to root when you need to run the scripts
2. run the scripts as a root cron job
3. if you are at your console, keep a root login on 1 console(say alt-F1)
and run as a user on another virtual console. If you are telnetting in, use
ssh to login as root.. Whenever you need to run a root script, hit <alt-F1>.
4. Then there is the "SUID" file permissions, which can be a security risk, but
it's an option.
5. Setup a special group for the scripts which allow selected users to run them.
I'm sure there are more ways.
zentara
NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net
| < Previous | Next > |