LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-27-2011, 08:01 AM   #1
kuiper
LQ Newbie
 
Registered: Dec 2010
Distribution: slackware
Posts: 15

Rep: Reputation: 0
Slackware13.1 struggling with file permissions


Hey guys,

I've tried posting on the slackware forum and have got some good answers but still not what i need. (even though they've been really helpfull)

I'm trying to change the permissions of my external USB drive that i've plugged into my machine. It still reads user root and group root.

I've tried chown -R kuier /home/kuiper/file
Then chgrp -R users /home/kuiper/file

But it still doesn't change permissions

I've also tried editing
/etc/group
and adding my name to plugdev group

nothing seems to be working ?? what am i doing wrong ???


thanks guy
 
Old 03-27-2011, 08:48 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
You can't do it the normal Linux way because your USB drive is not a native Linux filesystem (It's probably FAT/NTFS) so does not really understand Linux permissions. The ownership & permissions for FAT/NTFS partitions are assigned to it during the mount process.

Run 'df -hT' to see what filesystem the USB drive is.

Since most modern systems use udev rules to automount drives, it's not very easy to change this default behavior. If you are mounting it manually or using an fstab entry, you can tweak fstab to give you your desired settings. Something like this:

/dev/sde1 /home/kuiper ntfs-3g user,uid=1000,gid=1000 0 0

This will mount your USB drive using the specified uid & gid.

Last edited by ongte; 03-27-2011 at 08:51 AM.
 
  


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
[SOLVED] Cannot boot slackware13, even with the slackware13 created flashdrive yanfaun Slackware 59 02-13-2011 06:40 PM
Permissions problem I am still struggling with. chickenminnie Linux - Newbie 7 01-16-2010 10:05 PM
[SOLVED] Slackware13 permissions problem alexiy Slackware 4 09-04-2009 04:49 AM
Struggling with permissions on NAS drive rwhitworth SUSE / openSUSE 1 01-06-2007 12:49 PM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM


All times are GMT -5. The time now is 12:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration