vi /etc/samba/smb.conf
[global]
allow insecure wide links = yes
unix extensions = no
browseable = no
[Pi_Share]
Comment = Pi shared folder
Path = /home/pi/MyPassport
Browseable = yes
create mask = 0777
directory mask = 0777
Writeable = Yes
only guest = no
Public = no
Guest ok = no
wide links = yes
#force user = pi
restart by using following command:
sudo service smbd restart
add user to samba
=> smbpasswd –a username
Disable user
smbpasswd -d username
Delete user
smbpasswd -x username
=====================================
Samba system config tool, use system-config-samba with root permission.
if file not found error occurs, use 'touch' command to create a file.
Samba Hangul setting.
from /etc/samba/smb.conf
[global]
coding system = KS8
client code page = cp949
preserve case = yes
short preserve case = yes
[homes]
comment = Home Directories
path=/home/useraccound/directory
browseable = no
writable = yes
valid users = username
public = no
-----------------------------------------------------------------
add user to samba
=> smbpasswd –a username
Disable user
smbpasswd -d username
Delete user
smbpasswd -x username
start and stop samba server.
/etc/init.d/samba restart
-------------or-----------------
/etc/init.d/samba start
/etc/init.d/samba stop
댓글 없음:
댓글 쓰기