Description
The samba service allows to share file and folders to many systems, like Windows, Linux and Mac. The samba service for DAFNE control system is running on dafnenfs.lnf.infn.it
and has the following shares:
Share | Local Folder | Users | Access Mode |
---|---|---|---|
\\dafnenfs\dcs_win | /data/u2/dcs_win | dante | Read/Write |
\\dafnenfs\dcs_win_lv15 | /data/u2/dcs_win_lv15 | dante | Read/Write |
\\dafnenfs\dataFromDafne | /data/siddharta/dataFromDafne | smbsiddharta | Read Only |
smbdante, dante | Read/Write | ||
\\dafnenfs\dataFromSiddharta | /data/siddharta/dataFromSiddharta | smbdante, dante | Read Only |
smbsiddharta | Read/Write | ||
\\dafnenfs\dataFast | /data/u2/data/fast | dafne | Read Only |
\\dafnenfs\slmonitor | /data/slmonitor | dafne | Read/Write |
You can check and modify them in /etc/samba/smb.conf
file.
Restart service
Run the following commands:
[root@dafnenfs ~]# systemctl restart smb.service [root@dafnenfs ~]# systemctl restart nmb.service
Stop service
Run the following commands:
[root@dafnenfs ~]# systemctl stop smb.service [root@dafnenfs ~]# systemctl stop nmb.service
Start service
Run the following commands:
[root@dafnenfs ~]# systemctl start smb.service [root@dafnenfs ~]# systemctl start nmb.service
Add a share
- Stop the service
- Create the folder to be shared with right permissions if not present, otherwise check user permissions
- Add a share in
/etc/samba/smb.conf
file copying from shares already presents - Start the service
- Test the new share