LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-11-2003, 07:57 PM   #1
Hmmyah
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Rep: Reputation: 0
user permissions


i have a directory that only root has permission to access or execute, and i need to give a user on the system permission to modify/execute for all files and subdirectories of this directory.

What would be the root command to do this?
 
Old 12-11-2003, 08:12 PM   #2
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
The chmod command is what your looking for. Now giving one particular use read/write/execute permissions is harder than what I know how to do but to give all users r/w/x permissions run 'chmod ugo+rwx directory/ -R'. The ogu is for user(owner)/group/others and rwx is, as above, read/write/execute. Hope this works for you!
 
Old 12-11-2003, 08:29 PM   #3
Hmmyah
LQ Newbie
 
Registered: Dec 2003
Posts: 4

Original Poster
Rep: Reputation: 0
is there any way to wipe who the user and group is and assign it a new group and user, so that i can just have write and execute abilities by that new user??
 
Old 12-11-2003, 08:47 PM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Sure. First 'chown username.usergroup directory -R' and then 'chmod 700 directory/ -R'. The 700 is octal for the permissions for the command. The 7 is for the owner of the file/directory, the first 0 is for the group, and the last 0 is for all others. This should give only that one user r/w/x permissions on that directory and all files in it.
 
Old 12-11-2003, 09:03 PM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by Hmmyah
is there any way to wipe who the user and group is and assign it a new group and user, so that i can just have write and execute abilities by that new user??
Code:
groupadd special
usermod -G special username
chown -R username:special /the_directory
chmod ug+rwx /the_directory
chmod o-rwx /the_directory
At least that's how I'd do it... not that I'm saying it's the only right way to do it... or that if it's even 100% right at all
 
  


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
user permissions cubax Linux - Security 4 12-17-2004 02:48 PM
user permissions blubbfish Linux - Security 2 04-28-2004 07:33 AM
user permissions blubbfish Linux - Newbie 1 04-27-2004 02:22 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 06:43 AM
user permissions newpenguin Linux - General 7 11-07-2002 02:39 PM


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