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 09-23-2006, 02:10 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0

hi everyone,
im a little confused..hope someone can help me here.
I created 4 users jones,smith,ford,brown. I created 3 groups managers,public,programmers. jones and smith belong to the group managers, they all belong to the public group, and ford belongs to the programmers is where Im a little confused, I created a file called project and I only want the managers group to beable to access it. Not the two groups...Where do I put the permissions. If i put the permissions on the file "project" rw in the group area won't any group I created beable to access it. I still learning lixux...hope someone can help me on this ...thank you.
Old 09-23-2006, 02:23 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,243
Blog Entries: 15

Rep: Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320
Putting the "rw" in the "group area" makes it readable and writable by the assigned group. The part your missing is assinging the group to the file.

Do ls -l <filename>

This will show you the permissions for user, group and other, the number of links, the owner (user for permissions) of the file and the group of the file as well as other information. So looking at permissions:

The first position would indicate the file type (- = regular file, d = directory, l = symbolic link, c = character device, b = block device etc...). The next 3 describe the permissions for the owner seen on the line. The next 3 describe the permissions for the group on the line and the last 3 describe the permissions for everyone else.

r=read (value = 4), w=write (value=2), x=execute (value=1).

So rwx = 7, rw- = 6, r-x = 5 etc...

You change the group of a file with the chgrp command. You change the owner with the chown command. (You can set both with chown by typing chown <owner>:<group> <filename> where owner is the owner you want, group is the group you want and filename is the file you want to change.)
Old 09-23-2006, 02:39 PM   #3
LQ Newbie
Registered: Sep 2006
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for replying...I did what you said and it worked great..all I did was change the permissions group of the file to managers group and it worked...thank you again


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 permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM
need help with permissions hbbtstar Linux - Newbie 4 10-13-2003 06:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 PM.

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