![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| chown | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 04-17-2009 09:22 AM |
| chown | ariec | AIX | 2 | 08-14-2007 05:24 PM |
| Setuid Program with (-rwsr-sr-x 1 root other ) UID/EUID issue | 0ktalmagik | UNIX for Advanced & Expert Users | 7 | 08-20-2006 01:16 AM |
| chown doesn't work | shriashishpatil | UNIX for Advanced & Expert Users | 10 | 03-07-2006 02:12 PM |
| chown and NIS | Jody | UNIX for Dummies Questions & Answers | 2 | 07-01-2003 03:57 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Setuid root and chown
I am trying to run chown and chmod from a script owned by root. The permissions are set to 4755 so that users can execute the script as root. However, when I run the script as a user other than root, I get "Operation not permitted" for both chown and chmod. Any ideas as to why this is?
|
|
|||||
|
Quote:
Code:
$ id uid=1001(otto) gid=10(staff) $ ls -l test -rwsr-xr-x 1 root other 61 Apr 1 19:05 test $ cat test #! /bin/ksh chown otto joke chmod 444 joke ls -l joke exit 0 $ ./test -r--r--r-- 1 otto other 568 Apr 1 17:36 joke $ ls -l total 64 -r--r--r-- 1 otto other 568 Apr 1 17:36 joke -rwsr-xr-x 1 root other 61 Apr 1 19:05 test $ |
|
|||||
|
Quote:
Only kidding it did work for me too on Solaris 9, but I was pretty sure it shouldn't. Last edited by reborg; 04-01-2005 at 09:57 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|