You are not logged in.

#1 2013-10-05 22:03:53

Unsinkable
Member
Registered: 2013-10-02
Posts: 8

[SOLVED] Permissions of a partition changes everytime I reboot

I have 2 partitions. A windows one and and a storage one. I auto mount both to their corresponding folders in my home folder. The windows partition is owned by root and I just chmod the permission on the folder for me to be writable. I try doing the same for the Storage partition (chmod a=rwx /home/evan/Storage) but not only does it give me permission it also gives me ownership of the file.

Everytime I reboot, the Windows partition will stay writable but the Storage partition will be owned by root again and I will no longer have writing permission.

Here's my /etc/fstab file.

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda5
UUID=c8ba4b7c-8a44-4281-8dbe-2178227c2c6c       /               ext4           $

# /dev/sda6
UUID=8507a5dd-d335-489b-8d5d-51d931bd26ba       /home           ext4           $

/dev/sda1 /home/evan/Windows/ ntfs auto,users,exec,rw,async 0 0
/dev/sda3 /home/evan/Storage/ vfat auto,users,exec,rw,async 0 0

Last edited by Unsinkable (2013-10-06 00:08:54)

Offline

#2 2013-10-05 22:38:51

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,173

Re: [SOLVED] Permissions of a partition changes everytime I reboot

I think this is because ntfs supports ownership, permissions etc. and vfat does not. However, I'm not sure. I take it you are chmoding after the filesystem is mounted, rather than before.

You might want to look into the uid/gid/umask options for mount. Perhaps they would be more helpful. See the manual page for mount.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-10-05 22:41:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Permissions of a partition changes everytime I reboot

Why not use umask e.g. umask=111 for the mount option or use uid e.g. uid=1000 to set me as the owner.

Last edited by karol (2013-10-05 22:47:10)

Offline

#4 2013-10-06 00:08:18

Unsinkable
Member
Registered: 2013-10-02
Posts: 8

Re: [SOLVED] Permissions of a partition changes everytime I reboot

Thanks you guys I fixed the problem by adding umask=007 and uid=1000 to the end of my options in fstab.

Offline

Board footer

Powered by FluxBB