Allow write access for regular user on CIFS share
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media
that has read/write access to this specific folder. I mount the folder with the following /etc/fstab
entry:
//disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0
Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.
Output of ls -la
on the share shows following:
drwxr-xr-x 2 root root 0 01. Jan 2018 .
drwxr-xr-x 2 root root 0 01. Jan 2018 ..
-rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
-rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
-rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'
How do I configure my laptop to allow my regular user to have read/write access to the share?
linux permissions cifs smb
add a comment |Â
up vote
0
down vote
favorite
I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media
that has read/write access to this specific folder. I mount the folder with the following /etc/fstab
entry:
//disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0
Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.
Output of ls -la
on the share shows following:
drwxr-xr-x 2 root root 0 01. Jan 2018 .
drwxr-xr-x 2 root root 0 01. Jan 2018 ..
-rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
-rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
-rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'
How do I configure my laptop to allow my regular user to have read/write access to the share?
linux permissions cifs smb
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media
that has read/write access to this specific folder. I mount the folder with the following /etc/fstab
entry:
//disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0
Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.
Output of ls -la
on the share shows following:
drwxr-xr-x 2 root root 0 01. Jan 2018 .
drwxr-xr-x 2 root root 0 01. Jan 2018 ..
-rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
-rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
-rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'
How do I configure my laptop to allow my regular user to have read/write access to the share?
linux permissions cifs smb
I want to mount one of my media folders of my Synology DiskStation (DS414J, DSM 6.2) on my laptop (Manjaro running on Kernel 4.17.18) via SMB/CIFS. I set up a DiskStation user called media
that has read/write access to this specific folder. I mount the folder with the following /etc/fstab
entry:
//disk station IP/folder/ /home/user/NAS/folder cifs auto,x-systemd.automount,cache=none,rsize=130048,wsize=57344,users,user=media,pass=the password,workgroup=WORKGROUP,ip=disk station IP 0 0
Mounting and read access works (I can access the files and e.g. play them with VLC) with the regular user. However, when I try to perform any write operations, I get "Permission denied" error.
Output of ls -la
on the share shows following:
drwxr-xr-x 2 root root 0 01. Jan 2018 .
drwxr-xr-x 2 root root 0 01. Jan 2018 ..
-rwxr-xr-x 1 root root 5,8M 01. Jan 2018 '01.file'
-rwxr-xr-x 1 root root 3,7M 01. Jan 2018 '02.file'
-rwxr-xr-x 1 root root 3,2M 01. Jan 2018 '03.file'
How do I configure my laptop to allow my regular user to have read/write access to the share?
linux permissions cifs smb
linux permissions cifs smb
edited Aug 30 at 14:08
sebasth
6,34421643
6,34421643
asked Aug 26 at 18:57
SeeYouInDisneyland
33
33
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.
You can change this mapping to set your regular user as the owner and group of the share by using uid=
and gid=
mount options. This should allow write access.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.
You can change this mapping to set your regular user as the owner and group of the share by using uid=
and gid=
mount options. This should allow write access.
add a comment |Â
up vote
1
down vote
accepted
Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.
You can change this mapping to set your regular user as the owner and group of the share by using uid=
and gid=
mount options. This should allow write access.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.
You can change this mapping to set your regular user as the owner and group of the share by using uid=
and gid=
mount options. This should allow write access.
Your share has world-read access, hence anyone who can access the mount point can read the contents. When your system mounts the share, it maps the share owner (which has r/w access) to root, hence your regular user can't perform any write operations.
You can change this mapping to set your regular user as the owner and group of the share by using uid=
and gid=
mount options. This should allow write access.
edited Aug 30 at 14:04
answered Aug 26 at 20:24
sebasth
6,34421643
6,34421643
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464954%2fallow-write-access-for-regular-user-on-cifs-share%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password