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

Rep: Reputation: 0
permissions


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 group..here 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.
soda
 
Old 09-23-2006, 03:23 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,678
Blog Entries: 14

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
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:
-rwxrwxrwx

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, 03:39 PM   #3
soda99
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
bye
 
  


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


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

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