LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 08:31 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,224

Rep: Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700Reputation: 2700
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, 09:01 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 09: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, 01:43 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,224

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

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


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