You are not logged in.

#1 2022-07-24 12:49:03

vwagenjetta
Member
Registered: 2022-07-24
Posts: 9

[SOLVED] Samba/CIFS Permissions; I've tried everything.

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

#2 2022-07-24 14:07:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,534

Re: [SOLVED] Samba/CIFS Permissions; I've tried everything.

Please post the outputs of

mount | grep JettaNAS
stat /home/jetta/JettaNAS

You 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

#3 2022-07-24 14:59:44

vwagenjetta
Member
Registered: 2022-07-24
Posts: 9

Re: [SOLVED] Samba/CIFS Permissions; I've tried everything.

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

#4 2022-07-24 15:13:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,534

Re: [SOLVED] Samba/CIFS Permissions; I've tried everything.

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

#5 2022-07-24 17:19:31

vwagenjetta
Member
Registered: 2022-07-24
Posts: 9

Re: [SOLVED] Samba/CIFS Permissions; I've tried everything.

seth wrote:
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=1000

to the fstab options?

Offline

#6 2022-07-24 17:26:52

vwagenjetta
Member
Registered: 2022-07-24
Posts: 9

Re: [SOLVED] Samba/CIFS Permissions; I've tried everything.

sudo touch /home/jetta/JettaNAS/test.file

did add test.file to the drive, so sudo does have write access. I'm looking to give myself write access, though.

Offline

#7 2022-07-24 18:01:06

vwagenjetta
Member
Registered: 2022-07-24
Posts: 9

Re: [SOLVED] Samba/CIFS Permissions; I've tried everything.

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 0

and it works now. Sigh of relief

Offline

Board footer

Powered by FluxBB