romildo@uber.com.br
2003-Nov-09 15:11 UTC
[Samba] Check whether a unix user is a samba user
Hello. What is the command one should use to check whether a unix user is a samba user (that is, its username is in one of the samba password backends). Romildo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 romildo@uber.com.br ?rta: | Hello. | | What is the command one should use | to check whether a unix user is a | samba user (that is, its username is | in one of the samba password backends). | | Romildo If you are using samba-3, you could use: pdbedit --list --smbpasswd-style | grep "username" Good Luck! Geza Gemes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/rl3t/PxuIn+i1pIRAjdmAKClai0xKwncYgo0gMk6IPWrVfXSnwCfcr2t RD4YL+jSRiStYjNxS1k+Bl0=Wm7G -----END PGP SIGNATURE-----
On Sun, 9 Nov 2003 13:11 , romildo@uber.com.br sent:>Hello. > >What is the command one should use >to check whether a unix user is a >samba user (that is, its username is >in one of the samba password backends). > >Romildoyou can do a grep 'username' /etc/smb/smbpasswd>---- Prudential Preferred Properties www.prupref.com