The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-24-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
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
Reply With Quote
Forum Sponsor
  #2  
Old 09-24-2007
Registered User
 

Join Date: Mar 2005
Posts: 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
Reply With Quote
  #3  
Old 09-24-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,438
Quote:
Originally Posted by MSHETTY View Post
sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ?
Because it would be a security violation for the userID, sm860, to change the ownership of a file to another user, like bpt3a1.
Reply With Quote
  #4  
Old 09-24-2007
Registered User
 

Join Date: Sep 2007
Posts: 3
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
Reply With Quote
  #5  
Old 09-24-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,438
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.
Reply With Quote
  #6  
Old 09-25-2007
Registered User
 

Join Date: Dec 2006
Location: Maryland
Posts: 144
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
Reply With Quote
  #7  
Old 09-25-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,438
Quote:
Originally Posted by kapilraj View Post
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
There is no Unix-like OS that I know of that would permit a file with setuid set to change the owner to root from a non-privileged user.

These are basic security controls that have been in place for as long as I can remember.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0