You are not logged in.
Hello all,
First of all, I have finally returned to Arch after several years of using Linux Mint. It feels good to be back in a bloatware-free environment, and I'm enjoying my 1 second boot times! Unfortunately, this hiatus has caused me to lose much of my former Linux knowledge base.
My System:
$ inxi -Fxz
System: Host: MSIGS70-ARCH Kernel: 4.0.4-2-ARCH x86_64 (64 bit gcc: 5.1.0)
Desktop: KDE 4.14.8 (Qt 4.8.6) Distro: Arch Linux
Machine: System: Micro-Star product: GS70 2PE Stealth Pro v: REV:1.0
Mobo: Micro-Star model: MS-1772 v: REV:0.B
Bios: American Megatrends v: E1772IMS.106 date: 04/30/2014
CPU: Quad core Intel Core i7-4710HQ (-HT-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19961
clock speeds: max: 3500 MHz 1: 2500 MHz 2: 2500 MHz 3: 2500 MHz 4: 2500 MHz
5: 2500 MHz 6: 2500 MHz 7: 2500 MHz 8: 2500 MHz
Graphics: Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller
bus-ID: 00:02.0
Card-2: NVIDIA GK104M [GeForce GTX 870M] bus-ID: 01:00.0
Display Server: N/A driver: intel Resolution: 89x69
Audio: Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
driver: snd_hda_intel bus-ID: 00:03.0
Sound: Advanced Linux Sound Architecture v: k4.0.4-2-ARCH
Network: Card-1: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller
driver: alx port: c000 bus-ID: 04:00.0
IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Card-2: Intel Wireless 7260 driver: iwlwifi bus-ID: 05:00.0
IF: wlp5s0 state: down mac: <filter>
Drives: HDD Total Size: 1128.2GB (61.7% used)
ID-1: /dev/sda model: TOSHIBA_THNSNJ12 size: 128.0GB
ID-2: /dev/sdb model: WDC_WD10JPVX size: 1000.2GB
Partition: ID-1: / size: 29G used: 5.4G (20%) fs: ext4 dev: /dev/sda5
ID-2: swap-1 size: 17.83GB used: 0.00GB (0%) fs: swap dev: /dev/sdb3
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 25.0
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 182 Uptime: 33 min Memory: 1191.8/15971.7MB
Init: systemd Gcc sys: 5.1.0 Client: Shell (bash 4.3.391) inxi: 2.2.21
The Situation: I have a separate hard drive formatted to NTFS, which I use for my file storage on all of my OSes (I have 4 right now, including Windows 8).
The problem: Despite configuring the mountpoint (/media/aaron/data) to mount under my user, aaron, and the 'all' group, other applications do not have any access to the /media/aaron/data directory. Because of the fact that it is NTFS, and I am multibooting with Win8, I cannot simply chown the directory and subdirectories to my name. Instead, I had to amend the /etc/fstab to mount the directory under my user and group, which is where I believe my problem is.
Background: I have searched for hours on the internet, including the Arch forums to find a solution and the best I have found is a post here (answer #1) which at least allows me to access the directory through the file manager (Dolphin). I first noticed the problem when trying to download a torrent file using ktorrent. Ktorrent spat out the following message:
Cannot create /media/aaron/data/Downloads/wattOS-R8-32bit-mate.iso: Permission denied
Now, I think I have isolated the cause, however I have no idea how to fix it. I believe the cause is that only owner has permission to view and modify content. Group has permission only to view content. Other has no permission whatsoever. I believe that I need to somehow allow all of the users to have read and write privileges. It would be a simple chown, if it weren't for the fact that the FS is NTFS. I need some amendment to my fstab that will achieve this result, but I have a limited understanding of the various fstab options and masks.
My fstab file reads as follows:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda5
UUID=b1b2ca8c-e7fc-42a2-aabb-a2c3208c2a65 / ext4 rw,relatime,data=ordered 0 1
# /dev/sdb3
UUID=7381274f-2aea-4960-a45e-4fe2c7afac9f none swap defaults 0 0
# /dev/sdb1 DATA on /media/aaron/data
UUID=B64C82184C81D391 /media/aaron/data ntfs uid=1000,gid=100,dmask=027,fmask=137 0 2
it is /dev/sdb1 that I am configuring, and the options shown above are what allow me to access the directory using my non-privileged account.
I am sure I have probably forgot something, forgive me, it has been quite a long time now! Thank you all in advance, I appreciate anyone who takes the time to give this a wee bit of thought!
Let me know what information you require, and I will see it delivered promptly,
HPG
Last edited by hotpepperguy (2015-05-30 13:50:12)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code
Offline
UPDATE:
I installed the package ntfs-3g to my system, as per the Arch Wiki instructions, and then set the fstab options as follows:
UUID=B64C82184C81D391 /media/aaron/data ntfs-3g uid=aaron,gid=users 0 0
Just setting the uid and the gid alone allows permissions to be granted to all groups, so this is obviously not a solution for a multiuser system. As for a single user setup - it is perfect.
cheers,
HPG
Last edited by hotpepperguy (2015-05-30 13:55:31)
Offline