Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-26-2002, 10:44 PM   #1
LQ Newbie
Registered: May 2002
Posts: 1

Rep: Reputation: 0
file & dir permissions

Hello, First Post! WOW!

Trying to change persmissions for one user group. Enable permission so they CANNOT access any other file & directories other than their own ones belonging in their group. So they can access all 'accounts'(group) files & dirs but no other groups files & dirs 'sales' or 'IT'.

Working with commands CHGRP & CHOWN, but confused
RH 7

ty, lnxDE
Old 05-27-2002, 03:25 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
also you use chmod to change the permissions of dirs/files..

man chmod
for all the details
Old 05-27-2002, 03:48 AM   #3
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Hi lnxDE,

You can 'man' any command that you know (well most anyway) but the man pages ARE confusing when you are fisrt starting out, so with this in mind I'll outline a few things to help you on your way...

first thing is to set the group access to the files... lets work with /usr/local/share as an example. Set the group users as the group for this directory,

chgrp users /usr/local/share

Thats pretty easy. Now you want to allow folks in the group users (and the owner) to have full permissions to access the folder but noone else...

chmod 770 /usr/local/share

you may want users to only read and execute things in this directory (owner has full access...

chmod 750 /usr/local/share

basically the easiest way to set file permissions is using the chmod command with binary input.

so 750 gives the permissions drwxr-x--- to the above dir.

0 gives --- 1 gives --x 2 gives -w- 3 gives -wx 4 gives r--
5 gives r-x 6 gives rw- 7 gives rwx

and the location of the values is also important...

chmod 750 here the 7 is set for the owner of the file or dir. the 5 sets r-x for the group, and 0 is set for the oranisation or anyone who can access the filesystem.

Thats it in a nutshell, there is alot more to chmod but this will get you well under way.


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
vsftpd & anonymous file permissions uncfleece Linux - Networking 2 01-01-2007 09:14 AM
GnuPG - best permissions & security of decrypted file - help please emuub Linux - Security 1 10-14-2005 06:28 PM
set file permissions for 100 directories & its files cevjr Linux - Security 6 01-06-2005 11:23 AM
File & directory permissions waynevnc Debian 5 07-06-2004 03:29 PM
File & Dir Sharing kawaii Linux - Newbie 1 03-20-2003 06:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 AM.

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