mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
samba password fixes
This commit is contained in:
parent
ec959849c1
commit
660861188a
@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /var/lib/samba/private
|
||||
echo -e "$PASSWORD\n$PASSWORD\n" | /usr/bin/smbpasswd -a admin -s > /dev/null
|
||||
|
||||
|
@ -8,15 +8,9 @@ test -n "$os_debug" || source /etc/init.d/conf
|
||||
test "$os_networkless" == "true" && exit 0
|
||||
|
||||
start() {
|
||||
msg_begin "Setting smb admin password"
|
||||
|
||||
mkdir -p /var/log/samba
|
||||
mkdir -p /var/lib/samba/private
|
||||
|
||||
password=$(/etc/init.d/adminpw)
|
||||
echo -e "$password\n$password\n" | /usr/bin/smbpasswd -a admin -s > /dev/null
|
||||
test $? == 0 && msg_done || msg_fail
|
||||
|
||||
msg_begin "Starting smbd"
|
||||
smbd -D
|
||||
test $? == 0 && msg_done || msg_fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user