LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 04-01-2004, 05:54 AM   #1
garymansell
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Rep: Reputation: 0
How can an ordinary user change a file's ownership?


Hi,

By default, chown only allows the root user to change ownership of files from one user to another for obvious reasons.

Is there a kernel tweak that can be applied to change this default behaviour to allow users to change ownership of files themselves?

Any help gladly appreciated

Regards

Gary Mansell
 
Old 04-01-2004, 11:35 AM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,590

Rep: Reputation: 188Reputation: 188
"By default, chown only allows the root user to change ownership of files from one user to another for obvious reasons.

Is there a kernel tweak that can be applied to change this default behaviour to allow users to change ownership of files themselves?"

Not that I know of. Another way to solve the problem could be using group permissions. A user could allow or disallow other users in his group to rwx his files. Also, a user can change the group ownership field to any group that he belongs to. So you could set up a group that only a single user belongs to, say mine and a group that all users belong to, say shared. Then the user who is in both groups could share a file by using chown to change the group name from mine to shared.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 04-01-2004 at 11:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Mount as an ORDINARY USER fahad26 Linux - Newbie 1 06-22-2005 03:30 AM
Mounting NFS from an ordinary user fahad26 Linux - Networking 5 05-11-2005 09:11 PM
Can't startx as ordinary user WoodLark Slackware 8 03-26-2005 05:40 PM
Using k3b as ordinary user friendly_guy Slackware 4 11-06-2003 02:16 PM
Ordinary user can shutdown benjaminrtz Linux - Security 12 07-11-2002 11:07 PM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration