Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Search this Thread
Old 03-22-2013, 07:29 AM   #1
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


and need to be changed to


I referred the below pointers :

but still helpless. Please advise.

Old 03-22-2013, 07:35 AM   #2
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
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 948
Blog Entries: 2

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

Rep: Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656
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
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
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
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:
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:
~$ chmod 775 <directoryname>

Last edited by shivaa; 03-22-2013 at 09:26 AM. Reason: Modification
Old 03-22-2013, 10:13 AM   #7
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 495

Rep: Reputation: 135Reputation: 135
Understanding Linux File Permissions
Old 03-22-2013, 10:21 AM   #8
Senior Member
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,382
Blog Entries: 5

Rep: Reputation: 272Reputation: 272Reputation: 272
Other resource:


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
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

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration