Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.
Moderator: General Moderators
Pyrite
Forum Regular
Posts: 769 Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:
Post
by Pyrite » Thu Jan 22, 2004 3:59 pm
I'm not sure either, may be PEAR makes use of Sudo too
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Sat Jan 24, 2004 9:43 am
I don't know if it would work, but having a script that only retrieves the usernames of the file, and then having the suid bit set on that script would be less evil. (imho)
Pyrite
Forum Regular
Posts: 769 Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:
Post
by Pyrite » Sun Jan 25, 2004 1:43 pm
Well that is what Sudo does though.
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Sun Jan 25, 2004 11:40 pm
There is a slight difference between sudo-ing /bin/cat and /usr/local/bin/smbpasswdreader.sh though
Pyrite
Forum Regular
Posts: 769 Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:
Post
by Pyrite » Sun Jan 25, 2004 11:41 pm
Sure, they are different files.