Whoa, why do you need to do this? it's generally a really bad idea. If you need a user to edit his/her own info via this script, that's what commands like passwd, chfn, and chsh are for. Otherwise, only root should be running something like this. --Andy On Wed, Nov 06, 2002 at 12:49:43PM +0530, Haresh Motwani wrote: > I need to read and edit /etc/passwd file thru a script which is running as > a user. > > Can suEXEC do it? is there any other way of doing it. > > > -- Attached file included as plaintext by Ecartis -- > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.385 / Virus Database: 217 - Release Date: 9/4/02 > > > ------------------------------------------------------------------------ > To unsubscribe email security-discuss-request@linuxsecurity.com > with "unsubscribe" in the subject of the message. > ------------------------------------------------------------------------ To unsubscribe email security-discuss-request@linuxsecurity.com with "unsubscribe" in the subject of the message.