LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-01-2007, 04:10 PM   #1
rejeep
Member
 
Registered: Mar 2007
Distribution: Gentoo
Posts: 49

Rep: Reputation: 15
Automatic owner and group of subfiles/subfolders


Hi!

Is it possible to create a folder, and everything you put in it will automatically be owned by a specified user and group?

Thanks!
 
Old 08-01-2007, 08:23 PM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
One possibility

You can use this command on a folder to make it sticky ( file owner only can make modifications or delete):

chmod -v a+wt /your/directory/tree

could look at the man pages on chmod and see if you can change permissions by group. Hope that helps but it only answers one of the two questions.
 
Old 08-02-2007, 01:17 AM   #3
rejeep
Member
 
Registered: Mar 2007
Distribution: Gentoo
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hern_28
You can use this command on a folder to make it sticky ( file owner only can make modifications or delete):

chmod -v a+wt /your/directory/tree

could look at the man pages on chmod and see if you can change permissions by group. Hope that helps but it only answers one of the two questions.
Hmm... That wont help me.

One thing that could help me though. Is it possible to make a folder that a user can read, write and execute files in. But the user shouldn't be able to delete the folder it self. And any other user should only be able to read and execute files it.
 
Old 08-04-2007, 12:20 PM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Try looking this over.

http://www.comptechdoc.org/os/linux/..._ugfilesp.html

This has more options and you might be able to figure out exactly what you want.
 
Old 08-05-2007, 02:02 AM   #5
rejeep
Member
 
Registered: Mar 2007
Distribution: Gentoo
Posts: 49

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hern_28
http://www.comptechdoc.org/os/linux/..._ugfilesp.html

This has more options and you might be able to figure out exactly what you want.
I found out that ACL's might help me so I'm reading up about that now.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
owner 1058 group 103 ? muddywaters Linux - General 3 02-17-2006 12:36 PM
Changing owner and group of file surfbass Linux - General 2 12-12-2005 02:25 PM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 07:13 AM
group owner etc MI3GTO Mandriva 3 02-27-2005 08:26 PM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:41 PM.

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
Open Source Consulting | Domain Registration