LinuxQuestions.org
Help answer threads with 0 replies.
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-14-2013, 03:02 PM   #1
Sadnewbie
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:

Code:
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, 03:10 PM   #2
jdkaye
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?
jdk
 
Old 06-14-2013, 03:12 PM   #3
Sadnewbie
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, 10:10 PM   #4
sum1nil
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
changes

'chown -R kitty.kitty /media/usb0' [R is recursive]'
then
'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 10:14 PM. Reason: Clarify
 
  


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


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