It will install samba with Version 4.1.6-3.18.1-3208-SUSE-oS13.1-x86_64
Now to configure samba edit the file /etc/samba/smb.cnf before making changes I will make the backup of original file as /etc/samba/smb.cnf.bak
mv /etc/samba/smb.cnf /etc/samba/smb.cnf.bak
Further give the entries like this
vi /etc/samba/smb.cnf
[global] workgroup = WORKGROUP passdb backend = tdbsam server string = Samba Server %v netbios name = opensuse security = user map to guest = bad user dns proxy = no #============================ Share Definitions ============================== [Anonymous] path = /samba/anonymous browsable =yes writable = yes guest ok = yes read only = no |
mkdir -p /samba/anonymous
systemctl restart smb.service
Now you can access the opensuse 13.1 sharing in windows as follows:
From windows machine just browse the folder& try to create a text file, but you will get an error of permission denied.
Check the permission for the shared folder.
root@server1:~# ls -l /samba/
total 4
drwxr-xr-x 2 root root 4096 May 29 18:17 anonymous
root@server1:~#
To allow anonymous user give the permissions as follows;
root@server1:~# cd /samba
root@server1:/samba# chmod -R 0777 anonymous/
root@server1:/samba# ls -l
total 4
drwxrwxrwx 2 root root 4096 May 29 18:17 anonymous
root@server1:/samba#
Now anonymous user can browse & create the folder contents.
You can cross check the content at server also.
server1:/samba # ls -l anonymous/
total 0
-rwxr--r-- 1 nobody nobody 0 May 29 16:37 anonymous_test.txt
server1:/samba #