You are not logged in.
Pages: 1
HI, I am able to mount cifs, but I do not have write access to it, any ideas ?
samba.conf:
[user]
comment = User share
public = no
valid users = user
read only = no
writeable = yes
path = /home/user/bf-data/user/filesmanual mount command :
sudo mount -t cifs -o user=user,vers=3.0 //hmara/user hmarasystemd mount :
[Unit]
Description=Mount Share at boot
Wants=network.target
After=network-online.target
After=remote-fs-pre.target
After=network.target
Before=remote-fs.target
[Mount]
What=//192.168.10.2/user
Where=/home/v/hmara
Options=_netdev,credentials=/home/v/.sys/hmara-creds,iocharset=utf8,rw
Type=cifs
TimeoutSec=5
ForceUnmount=true
[Install]
WantedBy=multi-user.targetUPD:
manual mount has write permission with next line :
sudo mount -t cifs -o user=user,vers=3.0,rw,file_mode=0777,dir_mode=0777 //hmara/user hmaraUPD: systemd mount allow to create files, but not allow to delete it, in order to delete the file, sudo / root permission required...
Options=noauto,noperm,vers=3.0,rw,credentials=/home/v/.sys/hmara-creds,iocharset=utf8,file_mode=777,dir_mode=777UPD: after reboot problem gone, hmm
Last edited by ihitmani (2022-08-31 15:29:27)
Offline
Pages: 1