|
Re: lug-bg: samba
- Subject: Re: lug-bg: samba
- From: vasil@xxxxxxxxxxxxxxx (vasil@xxxxxxxxxxxxxxx)
- Date: Tue, 20 Jul 1999 15:50:51 +0300 (EEST)
> Zdrawejte pak...znaci ako move nqkoj da mi prati fail-a smbpasswd nqma da e lo[o. Nqmam
> go izob]o i ne znam kakwo trqbwa da sydyrva.Sys nobody i pcguest pak ne stawa
Ami ima edin prost script kojto vurvi sus sambata,addtosmbpass ,s kojto
addvash user v smbpasswd-to ot passwd-to.Sled tova s smbpasswd mozhesh da
mu smenqsh parolata...az dazhe sum si pisal sam script za taq rabota,koqto
e neshto takova:
------------ CUT HERE -------------
#!/bin/bash
#Tova tuka se promenq po izbor
PSWD_PATH=/usr/local/samba/private
if [ -z $1 ] ; then
echo usage $0 username
exit 2
fi
adduser $1
if grep $1 /etc/passwd >/dev/null ; then
addtosmbpasswd $1 < $PSWD_PATH/smbpasswd >$PSWD_PATH/smbpasswd.1
cp $PSWD_PATH/smbpasswd.1 $PSWD_PATH/smbpasswd
fi
------------- CUT HERE --------------
E,leko e neskoposano,no vurshi rabota.... :)))
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
==================================================================
|
|
|