LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2005, 08:50 PM   #1
g_trueblood
LQ Newbie
 
Registered: Sep 2005
Location: Portland, ME
Distribution: Ubuntu 9.04
Posts: 16

Rep: Reputation: 0
groups and permissions


I've created three groups using groupadd

groupadd sales
groupadd production
groupadd accounting

I then created 4 users and added them to a group/groups

adduser tom (added to users and sales groups)
adduser dick (added to users and production groups)
adduser hary (added to users and accounting groups)
adduser mary (added to users, sales, production, and accounting groups)

I created a directory in root named /data and place three files there (sales.rpt, prod.rpt, and acct.rpt). These files should only be accessed by the members of the correct groups, ie sales.rpt can be written to by tom and mary only but viewable everyone. I am unable to correctly figure out where to change the permissions to accomplish this. Any help would be fantastic.
 
Old 10-06-2005, 09:40 PM   #2
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
umm

chmod ### yourfilename
chmod ### yourdirname

-rw------- (600) -- Only the user has read and write permissions.
-rw-r--r-- (644) -- Only user has read and write permissions; the group and others can read only.
-rwx------ (700) -- Only the user has read, write and execute permissions.
-rwxr-xr-x (755) -- The user has read, write and execute permissions; the group and others can only read and execute.
-rwx--x--x (711) -- The user has read, write and execute permissions; the group and others can only execute.
-rw-rw-rw- (666) -- Everyone can read and write to the file. Bad idea.
-rwxrwxrwx (777) -- Everyone can read, write and execute. Another bad idea.

or as root try using konquere and rght/click got properties and set permisions

hope that helps
 
Old 10-07-2005, 05:36 AM   #3
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
I think he's looking for this:

Code:
chown owner.group /file
ps:for exemple here, "root" is the owner and "sales" is the group
you can make the owner different then root but there is no need..

Code:
chown root.sales /data/sales.rpt
any user who is a member of sales group will now have permissions to read-write for /data/sales.rpt

Last edited by cb951303; 10-07-2005 at 05:40 AM.
 
  


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, X and Groups mikemrh9 Linux - Software 3 09-08-2005 10:10 PM
/dev permissions and groups in 2.6.9 kersten78 Slackware 2 10-24-2004 07:11 PM
users/groups and permissions.... muman Linux - Newbie 2 09-21-2004 12:20 PM
users, groups, and permissions mcd Linux - Newbie 3 05-26-2004 10:06 PM
user groups and permissions yank_ Linux - Newbie 1 02-26-2001 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:12 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
Open Source Consulting | Domain Registration