LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-22-2013, 07:29 AM   #1
kais1
Member
 
Registered: Dec 2008
Posts: 61

Rep: Reputation: 17
Change folder permissions


Hai all,

I have a folder to be changed for acces rights.

The folder is permission is

drwxr-xr-x

and need to be changed to

drwxrwxr-x

I referred the below pointers :

http://docs.joomla.org/How_do_UNIX_f...ssions_work%3F
http://www.washington.edu/computing/...rmissions.html

but still helpless. Please advise.

Kai
 
Old 03-22-2013, 07:35 AM   #2
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Rep: Reputation: 3
What commands have you tried executing. Did you get any errors?
 
Old 03-22-2013, 07:37 AM   #3
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
What exact commands have you used and what happened?
 
Old 03-22-2013, 08:01 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
First of all, what file system is the directory on? If it is a Linux filesystem such as ext4, use the chmod command. If it is on a fat32 or ntfs filesystem, then you can't change the permissions of a single directory, only all of them in the mount command options.

chmod ug=rwx,o=rx <dirname>
same as
chmod 0775 <dirname>


You should provide more information. Such as where the directory is. In your $HOME directory?

Last edited by jschiwal; 03-22-2013 at 08:03 AM.
 
Old 03-22-2013, 08:12 AM   #5
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Rep: Reputation: 3
Also, which user are you logged in as, and does that user account have permission to modify files & folder permissions wherever you are trying
 
Old 03-22-2013, 09:23 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
"drwxr-xr-x" means "A directory (d), having all read/write/execute (rwx i.e. 4+2+1=7) permissions for owner, read/execute (r-x i.e. 4+0+1=5) for group, and read/execute (r-x i.e. 4+0+1=5) for others". Or, in order words, permission is simply 755. And you can sum up it as:
Quote:
r - read (4)
w - write (2)
x - execute (1)
And if you want to change it to "drwxrwxr-x", then it means you want to change it to "all read/write/execute (rwx i.e. 4+2+1=7) permissions for owner, all read/write/execute (rwx i.e. 4+2+1=7) permissions for group, and read/execute (r-x i.e. 4+0+1=5) for others" i.e. you want to set it to 775. Therefore do it as:
Code:
~$ chmod 775 <directoryname>

Last edited by shivaa; 03-22-2013 at 09:26 AM. Reason: Modification
 
Old 03-22-2013, 10:13 AM   #7
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Understanding Linux File Permissions
 
Old 03-22-2013, 10:21 AM   #8
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
Other resource: http://tldp.org/LDP/GNU-Linux-Tools-...rmissions.html
 
  


Reply



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
how to change folder permissions in fc-6 chryslercirrus99 Fedora 3 06-07-2007 06:32 PM
can't change permissions for windows folder nikoz Linux - General 1 06-21-2006 08:19 AM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 03:09 AM
Script to change folder permissions waitingforOES Linux - Newbie 1 03-07-2005 01:34 PM
Change folder permissions eggoz Linux - Newbie 2 03-17-2003 01:35 AM

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

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