Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-05-2012, 03:57 PM   #1
LQ Newbie
Registered: Apr 2012
Distribution: Manjaro Linux
Posts: 15

Rep: Reputation: Disabled
Permissions For External HD Won't Save


I'm trying to set the permissions for an external HD so that my main user account (and any other accounts I may create in the future) can write to it (at the moment it is read-only). I've tried everything I can figure to change them, namely running chmod as root and logging in as root and using the GUI, but as soon as the permissions change finishes the permissions themselves revert back to how they were originally. I've tried editing the permissions of the folders above and below the main one (that being mnt/external, with the one up obviously being /mnt, and the one below being a folder on the external HD), with no dice.

I've run chmod verbose by the way, and it shows each successive file on the HD having its permissions changed but once again the permissions revert.

Here's the general form of the commands I've been trying.

sudo chmod -R -v 777 /mnt/external/
Old 07-05-2012, 04:06 PM   #2
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,366

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
If the drive is VFAT or NTFS then it ignores Linux permissions. In that case you would specify the user/group during the mount command (or in fstab). See the uid= and gid= values in `man ntfs-3g`, for example. Additionally, if it is an NTFS filesystem you will need to make sure it is being mounted using mount.ntfs-3g (eg. mount -t ntfs-3g) and not the regular ntfs driver, which can only mount read-only.

Last edited by T3slider; 07-05-2012 at 04:09 PM.
1 members found this post helpful.
Old 07-05-2012, 04:21 PM   #3
LQ Newbie
Registered: Apr 2012
Distribution: Manjaro Linux
Posts: 15

Original Poster
Rep: Reputation: Disabled
It is vfat, and it isn't mounting read only, as root has full permissions.

I'll have to check to confirm (I'm on one of my other machines at the moment), but I'm around 99% sure I've given the relevant user group permissions in fstab, as I am able to mount it as my main user account, not just as root.

EDIT: As I thought, the relevant lines are as is -

From /etc/fstab:

/dev/sdb1         /mnt/external    vfat         defaults,users          0   0
and from /etc/group:

where deadpool is my main user account...

EDIT: Wait, now I might be seeing it, does 'defaults' override the 'users' command? deadpool is also a member of plugdev, which if I recall correctly automounts all applicable volumes...

LAST EDIT: Bingo, I've got it working. Thanks for the push in the right direction, but it's definitely rewarding when you figure it out yourself.

Last edited by Malacoda93; 07-05-2012 at 04:37 PM.


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
My external HDD is damaged; How to save my data? digitsm Linux - Hardware 6 05-31-2010 12:11 PM
How to Save Data to an External Hard Drive on SUSE10SP1 Sloppyunderfoot Linux - Hardware 0 09-23-2007 05:29 PM
Shell Script to save/restore files and dir permissions joangopan Fedora 1 09-09-2007 03:51 AM
Why cant I save a pic after changing it in gimp, permissions problem? M$ISBS Linux - Software 3 08-08-2005 01:27 AM
File Permissions/ Can't save or delete website files friendlyflier Linux - Security 4 08-07-2005 07:32 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:36 PM.

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