![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change multiple ownership | invinzin21 | Shell Programming and Scripting | 1 | 01-17-2008 07:51 AM |
| change owner | panknil | Shell Programming and Scripting | 7 | 11-06-2007 02:07 PM |
| User should not be allowed to change passwd | brookingsd | UNIX for Dummies Questions & Answers | 3 | 01-23-2006 09:00 AM |
| Change owner | venkyA | UNIX for Dummies Questions & Answers | 16 | 04-29-2005 01:50 PM |
| How do I change ownership of a directory and all of it's files. | mborin | UNIX for Dummies Questions & Answers | 1 | 02-25-2001 03:24 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am the owner,yet not allowed the change the ownership
sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ?
See below for details --- sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ ls -l pcasav* -rw-r--r-- 1 sm860 gdpintegrators 821 Sep 21 16:15 pcasavdaily.dat -rw-r--r-- 1 sm860 gdpintegrators 39 Sep 21 16:15 pcasavdaily.end sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ whoami sm860 sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ chown bpt3a1 pcasav* chown: pcasavdaily.dat: Not owner chown: pcasavdaily.end: Not owner sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ thx m |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
changing ownership?
what are the permissions on the parent directory? I believe commands like "chown" update the directory inode.
Also, acl's could be used, what O/S? or File-system are you using |
|
#3
|
||||
|
||||
|
Because it would be a security violation for the userID, sm860, to change the ownership of a file to another user, like bpt3a1.
|
|
#4
|
|||
|
|||
|
makes sense.I guess it is a secutity violation.
sm860 was able to change permission so that bpt3a1 could mv and read the file. Thanks again for all the replies Note for those interested, the folder rights in which the files were sitting had drwx for all. thx m |
|
#5
|
||||
|
||||
|
Thanks for the update.
Yes, if terrible_person owned a file with very nasty stuff, for example. It would be a security violation for terrible_person to change the ownership of their file to innocent_victim. There are other reasons as well, this is just one example. |
|
#6
|
|||
|
|||
|
My crazy mind would write a setuid program and then change the ownership to root and will be able to run it as root user than me
It would be a serious security violation if it did work. Kaps |
|
#7
|
||||
|
||||
|
Quote:
These are basic security controls that have been in place for as long as I can remember. |
||||
| Google The UNIX and Linux Forums |