LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-16-2003, 09:17 AM   #1
linuxfans
LQ Newbie
 
Registered: Jan 2003
Posts: 20

Rep: Reputation: 0
How to assign directory access to a user


Hi ,

How we can give all permission to a particular user (both directory and file)?

I know

chmod 777 -R directory, but this will give everybody all the permissions.

Thanks,
 
Old 04-16-2003, 09:48 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
man chown
man chgrp
man chmod

Basically create a group and add that user to the group. Change the group ownership of the directory in question with the chgrp command, then any file you can change the ownership of with the chown command. Then use the chmod command to set the permissions accordingly on the directory and then the file if necessary. The man pages on the above commands will tell you everything you need to know.
 
Old 04-16-2003, 09:50 AM   #3
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Rep: Reputation: 16
Please don't double post:

http://www.linuxquestions.org/questi...threadid=55297
 
Old 04-16-2003, 10:07 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Tech1
Please don't double post:

http://www.linuxquestions.org/questi...threadid=55297
Thank you for pointing that out but that isn't a double post. One is asking how to assign particular permissions on a directory and file for a user, the other is asking unlimited privileges for a user. As I see this, its two totally different questions.
 
Old 04-16-2003, 10:29 AM   #5
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Rep: Reputation: 16
Same thing to me, but worded differently
 
Old 04-16-2003, 10:38 AM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Tech1
Same thing to me, but worded differently
Oh well, its two totally different questions asking for two different outcomes. Its one thing to ask how to setup groups and permissions of files, its another thing to ask how to give a user unlimited access to everything.. so the verdict: different questions, no double post. Thanks.
 
Old 04-16-2003, 11:06 AM   #7
Neuronet
Member
 
Registered: Feb 2003
Location: The Netherlands
Distribution: Debian 3.0
Posts: 43

Rep: Reputation: 15
If you want the user to be able to access all the folders accessible to the folders group owner, then you might find 'adduser usrename groupname' handy.
 
Old 04-16-2003, 01:06 PM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Oh I should have actually read the other thread before replying. This is definitely not a double post when the other question is not asking how to give a user with unlimited access like root but just access to the actual command ulimit, which has nothing to do with file permissions. .
 
  


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
assign an arbitrary name or letter to a directory Melsync Linux - General 3 10-06-2005 10:48 AM
Allowing user access to one directory only aje Slackware 5 05-25-2005 09:12 PM
can not access directory from user account - only root walterbyrd Linux - General 1 03-05-2005 12:23 AM
Directory access denied to root user: inode hack? netmar Linux - Security 2 07-31-2004 05:53 AM
Assign rights to directory robertmarkbram Linux - Newbie 4 08-15-2003 08:58 AM


All times are GMT -5. The time now is 03:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration