[Ilugc] suid with owner
- From: gopubhaskar@xxxxxxxx (Gopu Bhaskar)
- Date: Tue Mar 15 14:14:26 2005
hOW do i make a C program suid with owner
with write permission on /etc/passwd
Didnt understand what exactly you want. I assume that you
want a program that has write permission on /etc/passwd
for all users.
Since only root has write permission you would have to give
suid with owner for your c program (executable)
If a.out is your executable
do
chmod u+s a.out
(root should be the owner of a.out)
If your question is how to do this from inside a C program
pls see
man 2 chmod
Gopu.
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
Other related posts: