LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2013, 01:56 AM   #1
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Rep: Reputation: Disabled
Permissions


Hello all, I understand there is much information on permissions but i was wondering about a particular case..
made a shared dir
need multiple groups shared folders in this dir

So how do i set the appropriate standard and special file system permissions so that anything created or placed in the folders will be owned by the group, and users cannot delete other peoples work, only their own ?

Also id like to add the appropriate folders to each user’s PATH variable when they log in
and set each user’s prompt in the Software group to display the username, and the current directory each time they log in

Thanks in advance

Last edited by TechJay; 05-01-2013 at 01:58 AM.
 
Old 05-01-2013, 02:13 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
In order to protect public data from others, simply add sticky bit on the directory, so only root, owner of the directory or owner of the file will be able to delete the content of the directory. To set it:
Code:
~$ chmod a+t /path/to/directory
You can also consider adding the SGID permission on each directory according to the group it belongs, so only those users will be able to alter/modify the data inside it, who are member of the group.
Code:
~$ chmod g+xs /path/to/directory
In order to set prompt, simply append following line in every user's ~/.bashrc or ~/.profile file:
Code:
PS1="\u{\w}\!$ "

Last edited by shivaa; 05-01-2013 at 02:15 AM.
 
1 members found this post helpful.
Old 05-01-2013, 02:15 AM   #3
TechJay
LQ Newbie
 
Registered: Mar 2013
Location: WV
Distribution: Fedorra Goddard for now
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thank you.. attemping
 
  


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
setfacl changes group permissions; giving another user rw permissions secretlydead Linux - Server 4 09-23-2012 12:12 AM
relation between programs permissions and permissions of the files they use rblampain Linux - Security 1 07-10-2011 09:40 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 10:06 AM
[SOLVED] Lack basic understanding of permissions(apache permissions problem) cK` Linux - Newbie 7 04-09-2010 12:49 AM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration