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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-07-2012, 09:25 AM
|
#1
|
LQ Newbie
Registered: Jun 2012
Posts: 2
Rep:
|
gives the permission
i want to just give all permission to a specified user on all files that recides in a directory. how can i achive it.
thanks & regards
pritesh ranjan
|
|
|
06-07-2012, 09:31 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,258
|
if you want to give all permissions only to this user you would need to set this user as owner for all the files and dirs and set full access to the owner
|
|
|
06-07-2012, 10:01 AM
|
#3
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
take a look at the "chown" and "chmod" commands. To change owner and/or permissions for a directory and all contents, use the -R flag.
|
|
|
06-07-2012, 10:40 PM
|
#4
|
LQ Newbie
Registered: Jun 2012
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by pixellany
take a look at the "chown" and "chmod" commands. To change owner and/or permissions for a directory and all contents, use the -R flag.
|
i just try it but not success ful. may u know me the syntax or example (or any link).
|
|
|
06-08-2012, 02:43 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,258
|
man chown, man chmod will explain it and also you can try google to find examples, tutorials
|
|
|
06-08-2012, 05:05 PM
|
#6
|
Member
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719
Rep:
|
First open terminal
Code:
chown -R /directory/targeted/ New_User_Name ----> May need to run as root if you are not the current owner.
chmod -750 -R /directory/targeted/ --> Again may need to run as root,
If you run into problems.
man (short for manual) command (chown : Change Owner or chmod : Change Mode )
|
|
|
All times are GMT -5. The time now is 12:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|