jak odebrat uzivatele ze skupiny pres sambu

Miroslav Lachman 000.fbsd at quip.cz
Fri Mar 28 02:03:00 CET 2008


Prevadim ted na freebsd jeden linuxovy server, ktery slouzil se sambou 
jako domenovy radic, v puvodnim smb.conf je nekolik definic pro 
pridavani / odebirani uzivatelu a skupin. Vetsinu z toho jsem nasel, jak 
nahradit na FreeBSD, ale mam problem s tim, ze nevim, jak odebrat 
uzivatele ze skupiny / pridat do skupiny (pridat do dalsi skupiny, ne 
jen zmenit primarni skupinu). Nemate tohle nahodou nekdo vyresene?


## puvodni nastaveni na Linuxu
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/bin/gpasswd -a %u %g
delete user from group script = /usr/bin/gpasswd -d %u %g
set primary group script = /usr/sbin/usermod -g '%g' '%u'
add machine script = /usr/sbin/useradd -g machines -c Machine -d 
/dev/null -s /bin/false %u
panic action = /usr/share/samba/panic-action %d

## alternativy pro FreeBSD
add user script = /usr/sbin/pw useradd -n %u
delete user script = /usr/sbin/pw userdel -n %u
add group script = /usr/sbin/pw groupadd -n %g
delete group script = /usr/sbin/pw groupdel -n %g
add user to group script = ?????
delete user from group script = ?????
set primary group script = /usr/sbin/pw usermod -n %u -g %g
add machine script = /usr/sbin/pw useradd -n %u -g machines -c Machine 
-s /usr/sbin/nologin
panic action = ?????


Mirek



More information about the Users-l mailing list