On Fri, 18 Apr 2003, Loeung Vidol wrote: > Hi all: > > Can I set SUID to a shell script that looks like the following: > --------------------- > #!/bin/bash > > #Name: add4all.sh > #Usage: add4all.sh username password > > /usr/sbin/useradd $1 > /bin/echo "$2" | /usr/bin/passwd --stdin $1 > ------------------------ > > so that any user can use it? > > Well, it's not really important but i'd like to know if it can be done. Not easially. Is it possible?? Yes, with open source anything is possible. :-) By default SUID root shell scripts are not allowed. HTH, -- .............Tom "Nothing would please me more than being able to tdiehl@xxxxxxxxxxxx hire ten programmers and deluge the hobby market with good software." -- Bill Gates 1976 We are still waiting .... -- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/psyche-list