Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- samba => Create a samba-specific account.
- a. Create a samba account and manage it centrally through a single account.
- b. All Samba accounts for regular users are added and managed through smbpasswd.
- Add Samba user and set Samba login password “Just sample User => simmon”
- smbpasswd -a “Samba user account”
- [root@nalkal simmon]# dnf install samba*
- [root@nalkal simmon]# smbpasswd -a simmon
- New SMB password:
- Retype new SMB password:
- Added user simmon.
- Allow and set the samba port (samba port 139,445)
- [root@nalkal simmon]# firewall-cmd --permanent --zone=public --add-port=139/tcp
- success
- [root@nalkal simmon]# firewall-cmd --permanent --zone=public --add-port=445/tcp
- success
- [root@nalkal simmon]# firewall-cmd --reload
- success
- Configuring the samba Environment
- Allow directories to share specify the storage location as /home/share, and also use the user account.
- a. Public place samba setting
- [root@nalkal simmon]# mkdir /home/share
- [root@nalkal simmon]# chmod 777 /home/share
- b. Preferences ( /etc/samba/smb.conf )
- [smbshare]
- comment = samba service
- path = /home/share
- public = yes
- writable = yes
- write list = samba
- create mask = 0777
- directory mask = 0777
- Service Settings
- [root@nalkal samba]# systemctl enable smb
- Created symlink /etc/systemd/system/multi-user.target.wants/smb.service → /usr/lib/systemd/system/smb.service.
- [root@nalkal samba]# systemctl start smb
- ● smb.service - Samba SMB Daemon
- Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
- Active: active (running) since Fri 2019-07-19 02:34:54 KST; 2min 57s ago
- Docs: man:smbd(8)
- man:samba(7)
- man:smb.conf(5)
- Main PID: 9218 (smbd)
- Status: "smbd: ready to serve connections..."
- Tasks: 4 (limit: 1141)
- Memory: 13.7M
- CGroup: /system.slice/smb.service
- ├─9218 /usr/sbin/smbd --foreground --no-process-group
- ├─9220 /usr/sbin/smbd --foreground --no-process-group
- ├─9221 /usr/sbin/smbd --foreground --no-process-group
- └─9222 /usr/sbin/smbd --foreground --no-process-group
- 7월 19 02:34:54 nalkal systemd[1]: Starting Samba SMB Daemon...
- 7월 19 02:34:54 nalkal systemd[1]: Started Samba SMB Daemon.
- 7월 19 02:34:54 nalkal smbd[9218]: [2019/07/19 02:34:54.599592, 0] ../../lib/util/become_daemon.c:135(daemo>
- 7월 19 02:34:54 nalkal smbd[9218]: daemon_ready: daemon 'smbd' finished
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement