Share your knowledge at the LQ Wiki.
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 06-14-2013, 02:02 PM   #1
LQ Newbie
Registered: Jun 2013
Posts: 2

Rep: Reputation: Disabled
Unhappy help me about chmod to folder

Hi all!

I have a folder, /media/usb0, here is "ls -l" output:

root@109:/# ls -l /media/
загалом 16
lrwxrwxrwx  1 root  root     4 тра 31 05:58 usb -> usb0
drwxr-xr-x 20 kitty root 16384 січ  1  1970 usb0
I am a user "kitty"

my target, wish:

I want to always permissions to read, execute and write files in this folder
, and another users can not write or execute, - only read

How I can do it?

(and: this folder, /media/usb0, exist on ext2 filesystem
but contain files and folders of FAT32 - drive: /dev/sda1)

maybe, I need to chmod or chown /media/usb0, but I can not understand how.....
Old 06-14-2013, 02:10 PM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I'm not sure if FAT32 supports permissions. Have you checked that out?
Old 06-14-2013, 02:12 PM   #3
LQ Newbie
Registered: Jun 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
/media/usb0 is folder, which exist on ext2fs

so, probably, I can change permissions to it

for example, if I mount FAT32-partition to this folder as root - I have not write permissions, when try to access as user
Old 06-19-2013, 09:10 PM   #4
LQ Newbie
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled

'chown -R kitty.kitty /media/usb0' [R is recursive]'
'chmod -R 744 /media/usb0' [744 - 7 is owner rwx; 4 is read only for group/others]

You might have to use sudo or such if anything belongs to a different user/group.

Be carefull!!! Be a happy newbie
Edit: Do not use -R if you only want to change a particular folder!

Last edited by sum1nil; 06-19-2013 at 09:14 PM. Reason: Clarify


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
keep chmod on folder, sub-folder and files Friis Linux - Newbie 2 11-03-2010 10:55 AM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
Problem in using chmod with mounted folder casper234 Linux - General 5 02-13-2006 08:45 AM
Chmod rights and folder access fieldyweb Linux - General 3 08-24-2005 04:12 AM
Chmod = no access to home folder! DeathPrawn Linux - Newbie 4 02-12-2005 11:50 AM > Forums > Linux Forums > Linux - Newbie

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