I have two ubuntu (lubuntu 20.10) machines. On one of the machines, I created a folder and shared it using samba.
My entry in /etc/samba/smb.conf looks like this
[MyShare]
comment = NO COMMENTS
path = /home/user1/Documents/Shared
read only = no
guest ok = yes
writeable = yes
For the folder /home/user1/Documents/Shared I have set permissions to 777.
From the second machine, I mounted the shared folder using cifs, using the below command
sudo mount -t cifs -o rw,guest,vers=2.0 //user1-pc.local/myshare /media/share
(user1-pc is the hostname of the first machine.)
Now, I am able to cd into /media/share, view contents of files using cat command. However, I am unable to create new files using touch command.
The command I used was, touch first.txt
The error was, touch: cannot touch 'first.txt': Permission denied
I am new to working with permissions in linux. Kindly help me with overcoming the issue.
guest ok = yesoption allows clients to connect without a password and with the privileges of the guest account. The default guest account is the 'nobody' user, which might explain the limited access. Link: samba.org/samba/docs/current/man-html/…