LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-07-2012, 09:25 AM   #1
pritesh ranjan
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 06-07-2012, 09:31 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,258

Rep: Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690
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
 
Old 06-07-2012, 10:01 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 06-07-2012, 10:40 PM   #4
pritesh ranjan
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany View Post
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).
 
Old 06-08-2012, 02:43 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,258

Rep: Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690Reputation: 7690
man chown, man chmod will explain it and also you can try google to find examples, tutorials
 
Old 06-08-2012, 05:05 PM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb

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 )

 
  


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
permission with lighttpd, linux permission... evermore Linux - Newbie 6 04-16-2011 01:34 AM
i have given chmod 777 permission for access now how to revert that permission mohdsuboor23 Linux - Server 1 12-11-2010 06:19 AM
Samba MODIFY permission needs 'x' permission set in Linux? jlinkels Linux - Software 6 11-13-2009 10:30 AM
group permission the sticky bit permission comes in capital 'S' pkishorenayak Linux - Newbie 1 04-11-2008 06:04 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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