Hi Rajesh ,
If the only requirement was to run a script as root , you can try
the same by setting the User Id bit for the Script and change the
owner of the script to root .
chown root <scriptname>
chmod 4744 <scriptname> ( to set the user id bit of the script)
When you run the script it would set the effective user id to that
of root user so you have all the permissions of root .
regds ,
ID
______________________________ Reply Separator _________________________________
Subject: Re: [LIH] superuser equivalent user
Author: Mail ([EMAIL PROTECTED]) at internet
Date: 1/16/01 2:19 PM
On Tue, Jan 16, 2001 at 11:49:03AM +0530, Suresh Ramasubramanian wrote:
>Rajesh Fowkar rearranged electrons thusly:
>
>> I am curious to know how such account can be created using command line tool
>> (adduser ) without using userconf :-)
>
>give the user gid 0
Thanks everybody for help. Problem solved after changing uid=0
and gid=0 in /etc/passwd file.
What I wanted to do here was to create a user for taking backups and put the scr
ipt for taking backup in that user's profile and after the backup is over exit.
This user needed to have root permissions.
--
Rajesh Fowkar
(Computer Programmer)
V. S. DEMPO & CO. LTD.
PANAJI-GOA
Email : [EMAIL PROTECTED]
[EMAIL PROTECTED]
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr