[ubuntu-za] List Samba users

Hannes Coetzee scorpking at scorpking.za.org
Tue May 19 17:46:16 BST 2009


On Tuesday 19 May 2009 16:11:59 Bruno Marques wrote:
> hello all ...
>
> i had a samba server set up for a small office in my hometown.
> nothing too fancy, just a simple fileserver, with some basic rules and
> permissions for folders and stuff..
>
> but, a couple of months back i got cut off from maintaining the server,
> since i had some problems with the boss (he thought he didnt need any
> more maintenance, since the server wasnt giving any more problems for
> some weeks). but well. after a few months, i got a call from a friend of
> mine who works at the company, saying that he was away on vacation, and
> when he came back he forgot his username and password.
>
> i was looking inside some forums, but couldnt find any decent
> information...
>
> is there anyway i can list the smbpasswd users?
> i just need to know what the username is, since i remembered his
> password was pretty simple as "username12345"
>
> ive read somewhere that there is a file located in /etc/samba/smbpasswd
> but i couldnt find it.
>
> its running ubuntu 8.04 or 8.10, cant remember for sure,
>
> can someone help?
>
> many thanks in advance
>
> regards
>
> Bruno Marques

Look in /home for usernames and run sudo smbpasswd username to reset the samba 
password.

Hannes



More information about the ubuntu-za mailing list