samba는 /etc/samba/smb.conf 파일에서 공유할 디렉토리의 정보를 설정할 수 있다.
그리고, samba는 smbpasswd 라는 명령어로 samba user에 대한 암호를 변경할 수 있는데,
암호 변경을 시도했을때 아래와같은 에러메세지가 뜬다면 samba user가 없는 상태이니
-a 옵션으로 user를 추가하면 된다.
~ $ sudo smbpasswd mySmbUser
New SMB password:
Retype new SMB password:
Failed to find entry for user mySmbUser.
~ $ sudo smbpasswd -a mySmbUser
New SMB password:
Retype new SMB password:
Added user mySmbUser.
smbpasswd 옵션 options: -L local mode (must be first option) -h print this usage message -s use stdin for password prompt -c smb.conf file Use the given path to the smb.conf file -D LEVEL debug level -r MACHINE remote machine -U USER remote username (e.g. SAM/user) extra options when run by root or in local mode: -a add user -d disable user -e enable user -i interdomain trust account -m machine trust account -n set no password -W use stdin ldap admin password -w PASSWORD ldap admin password -x delete user -R ORDER name resolve order |
'지식 > Linux' 카테고리의 다른 글
Raspberry Pi - 디지털 액자 만들기 (0) | 2023.06.10 |
---|---|
Raspberry Pi - 디지털 액자 (Dynaframe) (0) | 2023.06.10 |
Raspberry Pi - SSH 설정 (0) | 2023.06.10 |
install Raspberry Pi OS (0) | 2023.06.10 |
Linux - GDB 사용법 (0) | 2022.04.13 |
댓글