You are not logged in.
I have a Synology NAS I'm trying to mount in /home/jetta/JettaNAS. It's mounted correctly, I've added it to the FSTAB file and it mounts on boot, I can view and download anything on the drive, but I have no write or execute permissions, so I can't save anything to the drive, or open anything from the drive without downloading it first. I've watched every chown and chmod and Samba and/or CIFS permissions video I can find, tried everything, and it never works. What am I missing? How do I do this? I did it once before with a tutorial I found somewhere, but I don't remember where that was, or what I did, as it was months ago and I forgot to write it down. I have to do it again, because I reinstalled Arch on this machine after a GPU swap (from AMD to nVidia, because the AMD card was broken, and I had a 3070 laying around). It was working fine before, on my Arch system and my Fedora system, but now It's not working on either (same problem, read-only permissions). I've been using Linux in general for about a year, and Arch for maybe six months. Please help! And thanks. #Arch4Life
Last edited by vwagenjetta (2022-07-24 18:02:20)
Offline
Please post the outputs of
mount | grep JettaNAS
stat /home/jetta/JettaNASYou might just have forgotten to set the proper uid/gid for the mount, https://wiki.archlinux.org/title/Samba#Manual_mounting
But in general, those permissions are controlled on the server (the synology NAS settings)
Offline
mount | grep JettaNAS
//192.168.1.10/Nas on /home/jetta/JettaNAS type cifs (rw,relatime,vers=3.1.1,cache=strict,username=vwagenjetta,uid=0,noforceuid,gid=1000,noforcegid,addr=192.168.1.10,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1)
stat /home/jetta/JettaNAS
File: /home/jetta/JettaNAS
Size: 0 Blocks: 0 IO Block: 1048576 directory
Device: 0,47 Inode: 108068865 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 1000/ jetta)
Access: 2022-07-24 06:50:24.282767800 -0500
Modify: 2022-07-20 11:25:57.185958300 -0500
Change: 2022-07-20 11:25:57.185958300 -0500
Birth: 2021-04-25 06:43:02.586079400 -0500
Offline
uid=0,gid=1000
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 1000/ jetta)You can probably
sudo touch /home/jetta/JettaNAS/test.file?
=> Fix the uid mount option.
Offline
uid=0,gid=1000 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 1000/ jetta)You can probably
sudo touch /home/jetta/JettaNAS/test.file?
=> Fix the uid mount option.
Do I just add
uid=0,gid=1000to the fstab options?
Offline
sudo touch /home/jetta/JettaNAS/test.filedid add test.file to the drive, so sudo does have write access. I'm looking to give myself write access, though.
Offline
I changed my fstab entry to this:
vers=3.0,username=vwagenjetta,password={password},nodev,nosuid,uid=1000,gid=1000,dir_mode=0770,file_mode=0770 0 0and it works now. Sigh of relief
Offline