Samba Server Configuration in OpenSuSe 13.1

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 #

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值