![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| chown | ariec | AIX | 2 | 08-14-2007 01:24 PM |
| chown | BG_JrAdmin | UNIX for Dummies Questions & Answers | 1 | 05-31-2005 10:47 AM |
| Chown problem | tonydsam | UNIX for Dummies Questions & Answers | 3 | 12-02-2004 08:55 AM |
| chown and permissions | ithost | UNIX for Dummies Questions & Answers | 1 | 07-03-2003 05:18 AM |
| chown and NIS | Jody | UNIX for Dummies Questions & Answers | 2 | 07-01-2003 11:57 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
chown issue
I have a strange problem in my Linux box (Suse). Recently I took over this box as admin even though I have no prior admin experience. Following is my issue
I had following users under 'root' group initially user1 user2 user3 Since I did not like user ids under root group. I modifed these user's group to 'users' using usermod command. Then I realised that all their files were still under group 'root', so using root id changed their group for all the files recursively using chgrp -R users <home> Then after some time, users complained that they could not able to change ower of the files. But claimed they could able to chown earlier user3 tried the following $ chown user1 test.sh and getting the following error > chown user1 test.sh chown: changing ownership of `test.sh': Operation not permitted file test.sh is owned by user3 and under users group -rwxrwxrwx 1 user3 users 36 2007-05-16 17:50 test.sh But it is working under root id (I know it should) Then I changed the group back to root using > id uid=1010(iriuser3) gid=0(root) groups=0(root) > id uid=1008(iriuser1) gid=0(root) groups=0(root) Even chgrp is nor working. Giving the same error Please let me know how to resolve this issue |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Depending on your operating system, either a use can run chown to give ownership of a file to another user or not. Solaris, for example, does not allow chown to be run by any user except root. HP-UX will allow chown run by any user to actually change ownership of a file to another user. What OS are you running?
|
|
#3
|
||||
|
||||
|
Thanks. I am using Suse Linux
|
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
Quote:
http://www.die.net/doc/linux/man/man...ilities.7.html http://www.securityfocus.com/infocus/1400 |
|
#7
|
||||
|
||||
|
Thanks Perderabo. By the way, what is the effect of creating a user id (say user1) with uid=0 (that of root)? Will it cause any issues or system crash?
|
||||
| Google The UNIX and Linux Forums |