LinuxQuestions.org
Help answer threads with 0 replies.
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 07-17-2012, 02:57 AM   #1
johnyhasan
LQ Newbie
 
Registered: Jun 2012
Posts: 9

Rep: Reputation: Disabled
Post file permission and ownership


1.to create group info,hr,sales
2.three user for three group(total 9 user )
3.Each user passwd is [passwd]
4.each group has certain directory the group member are acces, not allow another
5.one user will be member of all group and acces thair directory.
6.certain group of members modify thair file or directory.

plz help me.
 
Old 07-17-2012, 03:17 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

You will need to get your hands to command line and use "chown",

If it's like this:
+ you have a "info", "sales" ... with users:
- ann
- bob
- chris

which need to create/ modify the files in their "shared" directory ?
How to add users to group?
You need to create that shared directory and allow them doing things they need.
Code:
mkdir /home/info_shared
chmod 770 /home/info_shared
chown -vR nobody:info /home/info_shared
this will create "info_shared" directory and allow users in group "info" to write.

How will you share the directory it's a more complicated way,
you can do it with Samba
or if the users will be using the "server" to login, they will be able to browse the directories on the "server" (in this case you are done).

Last edited by lithos; 07-17-2012 at 03:19 AM.
 
Old 07-17-2012, 04:18 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
this looks like homework. regardless, please give us some context (including what you have read on Linux and BASH.)

One excellent reference:
http://tldp.org/LDP/Bash-Beginners-Guide/html/
 
  


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
File permission, change ownership revenge80200 Linux - Newbie 2 03-02-2008 01:02 PM
Question on ownership and permission satimis Linux - General 16 01-25-2006 10:40 AM
Ownership/Permission and Delete Syntax MadDogE134 Linux - Newbie 8 06-09-2004 06:05 PM
scp - peserve file ownership and permission eyt Linux - Newbie 6 10-24-2003 03:41 PM
permission or ownership problems trusouthrnplaya Linux - General 6 03-03-2002 03:33 PM

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

All times are GMT -5. The time now is 05:25 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