Thanks for correcting me 
 regds ,
ID

______________________________ Reply Separator _________________________________
Subject: Re: [LIH] superuser equivalent user
Author:  raju ([EMAIL PROTECTED]) at internet
Date:    1/16/01 7:06 PM


Shell scripts won't run SUID even if the SUID bit is set.
     
Perl scripts need some work before they can run SUID.
     
Compiled programs will run SUID with no problems.
     
-- Raju
     
>>>>> "ishwar" == ishwardeep singh <[EMAIL PROTECTED]> writes:
     
    ishwar>      Hi Rajesh , If the only requirement was to run a 
    ishwar> script as root , you can try the same by setting the User 
    ishwar> Id bit for the Script and change the owner of the script 
    ishwar> to root .
     
    ishwar>      chown root <scriptname> chmod 4744 <scriptname> ( to 
    ishwar> set the user id bit of the script)
     
    ishwar>         When you run the script it would set the effective 
    ishwar> user id to that of root user so you have all the
    ishwar> permissions of root .
     
    ishwar>      regds , ID
     
    ishwar> ______________________________ Reply Separator 
    ishwar> _________________________________ Subject: Re: [LIH]
    ishwar> superuser equivalent user Author: Mail ([EMAIL PROTECTED]) 
    ishwar> at internet Date: 1/16/01 2:19 PM
     
     
    ishwar> On Tue, Jan 16, 2001 at 11:49:03AM +0530, Suresh 
    ishwar> 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
     
    ishwar> Thanks everybody for help. Problem solved after changing 
    ishwar> uid=0 and gid=0 in /etc/passwd file.
     
    ishwar> What I wanted to do here was to create a user for taking 
    ishwar> backups and put the scr ipt for taking backup in that 
    ishwar> user's profile and after the backup is over exit.  This 
    ishwar> user needed to have root permissions.
     
     
    ishwar> -- Rajesh Fowkar (Computer Programmer) V. S. DEMPO & 
    ishwar> CO. LTD.  PANAJI-GOA
     
    ishwar> Email : [EMAIL PROTECTED] [EMAIL PROTECTED]
-- 
Raju Mathur          [EMAIL PROTECTED]           http://kandalaya.org/
     
---------------------------------------------- 
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


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to