| Subject: | setuid from shellscript isn't permanent |
|---|---|
| From: | Mr Aras <arasv@xxxxxxxxxxxxxx> |
| Date: | Thu, 17 Jul 2008 18:49:20 -0700 (PDT) |
| Newsgroups: | gnu.bash.bug |
Hi, I've got a shell script for installing a binary. In this script I set the binary to mode 4755. When I 'ls' the binary from within the shell script I see that it has the setuid bit set. When I exit the shell script, the binary is no longer setuid. I can setuid the binary from outside the shell script. How can I setuid from within a shell script and have it stay that way? e.g. $ ./setuid_test_script.sh mode of `/nfsroot/bin/busybox' changed to 4755 (rwsr-xr-x) -rwsr-xr-x 1 root root 515956 2008-07-18 11:46 /nfsroot/bin/busybox $ ls /nfsroot/bin/busybox -rwxr-xr-x 1 root root 515956 2008-07-18 11:45 /nfsroot/bin/busybox $ sudo chmod 4755 /nfsroot/bin/busybox $ ls -al /nfsroot/bin/busybox -rwsr-xr-x 1 root root 515956 2008-07-18 11:46 /nfsroot/bin/busybox Aras -- View this message in context: http://www.nabble.com/setuid-from-shellscript-isn%27t-permanent-tp18521209p18521209.html Sent from the Gnu - Bash mailing list archive at Nabble.com. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
|---|---|
| Next by Date: | Re: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied, LynnOS |
| Previous by Thread: | removing null elements from an array, Poor Yorick |
| Next by Thread: | Re: setuid from shellscript isn't permanent, Chet Ramey |
| Indexes: | [Date] [Thread] [Top] [All Lists] |