LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-07-2008, 01:31 PM   #1
JayQ7
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
Cannot understand to limit/enable certain group access to folders/files.


Hello, as you can see I'm new.

I've check various sites and the man pages as well and I'm still having an issue. I've also asked my professor at school and all she has told me was to make my computer help me?? This is for an assignment I have to do.

Certain groups have access to certain folders/files, while others have limited or no access at all.

Example..

Two members are members of the ABB group, and their usernames are ABB1 and ABB2. There are multiple groups and 2 users for each group.

Members of the ABB group have a folder in which all their files go in, but members of the RTT group are also allowed full access to those files, and members of group UDD are only allowed Read access to those files.

I'm not to sure on how to go about that. Linux is very confusing to me because my teacher just expects us to know everything, and it's only a second semester 1st year course.

Any help would be greatly appreciated!
 
Old 10-07-2008, 02:09 PM   #2
Savet
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 73

Rep: Reputation: 15
The important thing to remember is that file permissions are read/write/execute for owner,group,everyone.

So if a file by the name of mymidgetporn.avi has permissions of rwxr-x---

and its ownership is Myusername Users

This means that the owner is Myusername and the group ownership is Users

Let's break the permissions down now. The above can be broken into 3 sections:
Owner: rwx
Group: r-x
Everyone: ---

That would mean that the user Myusername can read, write, an execute the file.

The second set is "r-x" indicates that the group "Users" can read and execute the file, but cannot write to it, overwrite it, or delete it.

And finally, nobody outside the group can read, execute, or write to this file.

Now....to set file permissions, do some reading on the chmod command.

Hope this helps.
 
Old 10-07-2008, 02:30 PM   #3
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Asking for help with schoolwork isn't allowed.
 
Old 10-07-2008, 05:35 PM   #4
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 958

Rep: Reputation: 35
try man chmod
man chgrp
man chown

this is probabbly what your teacher meant by make the computer help you
 
Old 10-07-2008, 06:46 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
@Total-MAdMaN
Actually, asking for help/pointers IS allowed, as long as the poster shows they've made an effort. What we don't do is just hand out solutions...
 
  


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
Owner 99 Group 99 files & folders adnanm Linux - Newbie 1 05-26-2008 11:02 AM
Group Permissions and Ownership of files and folders bugeyemonster Linux - General 1 04-19-2006 01:52 AM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 06:14 AM
User and Group Access to Folders nutthick Linux - Security 5 12-19-2004 07:22 PM
group access for specic folders in samba fidelis Linux - Networking 0 09-20-2004 03:20 AM


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