LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-04-2003, 08:43 AM   #1
maildhanraj
LQ Newbie
 
Registered: Sep 2002
Location: pune
Distribution: Rh7.2
Posts: 12

Rep: Reputation: 0
Question file permission


hi all ,
well can u help in this Question --> i have a user dhanraj in the Group users and there are other members in that Group like a,b,c,d , now on a specific file owned by the user a , i dont want to give any permission to dhanraj , well dont forget that dhanraj and a are member of the same group and else then dhanraj all the member should get rw permission .
thanking you,
maildhanraj
http://maildhanraj.tripod.com
 
Old 04-04-2003, 08:49 AM   #2
loke137
Member
 
Registered: Feb 2003
Location: Brasil
Distribution: Debian Etch
Posts: 147

Rep: Reputation: 15
if the file is created under /home/user doesnt only root and user have permission for it? I am not at my linux box now, so I cant try it now.
I will post something later.
 
Old 04-04-2003, 10:25 AM   #3
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 458

Rep: Reputation: 42
To restate: You want a, b, c, and d to have rw permission and you do not want dhanraj to have any permissions at all. I would make a new group that a, b, c, and d are members of, but dhanraj is not. To do this, just add an appropriate line in /etc/group. The line *could* be this: "abcd:*:701:a,b,c,d. Then change ownership with the following command: "chown a:abcd <file>". Then set permissions: "chmod 660 <file>". The result will a file with owner a, group abcd both of which have rw permision. dhanraj is neither and so will not beable to read or write the file. You may have to consider permissions on the directory in which the file is in as well.

Note that the permissions of a file created under /home/user are entirely a matter of personal taste and system configuration, although by default such files are hidden from other users. Note that redhat gives each user their own group. If you wanted b,c, & d to have rw access to all of a's files, they could be added to the "a " group and umask set accordingly for a (with proper directory permissions).
 
Old 04-05-2003, 05:06 AM   #4
maildhanraj
LQ Newbie
 
Registered: Sep 2002
Location: pune
Distribution: Rh7.2
Posts: 12

Original Poster
Rep: Reputation: 0
well , thanks a lot loke137,fsbooks, well i will surely try that out and reply to u soon .
dhanraj sheth
http://linuxdhanraj.tripod.com
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About the file permission ust Linux - Distributions 1 05-06-2005 04:05 AM
File Permission gardenair Linux - Newbie 5 04-28-2005 11:35 PM
file permission Nechos Linux - Software 2 10-04-2003 04:31 PM
file permission !!! hitesh_linux Linux - General 5 03-25-2003 01:27 PM
File Permission glock19 Linux - General 4 01-02-2002 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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