Anyone, anyone at all??
I have inherited a rather strange setup which consists of a bunch of XP clients with local profiles and accounts pointing at a CentOS (edit, actually Fedora core 6) server running SAMBA for file and print. The plan is to migrate the existing users to a AD environment to get centralized authentication and logons.
Does anyone know if there is a way to get SAMBA to at least cough up with at least a list of the current users if not the passwords as well. I know that Windows AD can be set to encrypt passwords in a reversable encryption so I am wondering if there is a simmilar setting that would allow me to recover the current user passwords, if not what is the easiest way to reset them?
Thanks for any help in advance.
Last edited by SYNACK; 14th January 2011 at 03:22 AM.
Anyone, anyone at all??
SYNACK (12th January 2011)
Thanks, I'll have a look when I am in next and report back if/when I get confused
Umm, looking through the smb.conf it has no password backend set but it does have a commented out value pointing to tdbsam and the comments above it suggests that is needs no further configuration to use that method. Reading some of the stuff from other sites I am now more confused as it seems to suggest that this is possibly just some kind of mapping file that then points to local linux users however I have not even managed to generate a list of the local users. I tried a couple of commands from my searches and each bombed unhelpfully. Using linux in the command line when you are new to it is like being blind in a room full of pointly things.
Are there any remote GUI tools that could be used? I have tried ssh for remote command line but this won't let me logon as root (the only password I do actually have). I will look further into adding a new user hopefully to the admins group so that I can at least do that.
Edit: now have created a new user and found the place in sshd_config to edit so I am now able to logon using putty from a different workstation while onsite. Still on the hunt for a user list though.
Edit2: (notes for when I get back there I will try)
Last edited by SYNACK; 14th January 2011 at 03:37 AM.
SYNACK (14th January 2011)
I have also inherited an interesting setup, where we have a Samba server (running on Suse Linux) as our DC, file and print server. It runs really well but a lack of AD is hampering us and a migration to Windows Server 2008R2 is planned for summer.
On Suse the password file is located in /etc/samba and the file you are looking for is smbpasswd as this will list the users. (If it is different on your setup then you need to change the file path in the command below)
If you don’t know the location of your smbpasswd file you can search using the following command, find / -name smbpasswd
To get the information out use the command cat /etc/samba/smbpasswd >> filename.txt
This will produce a txt file you can then copy from your Samba server and import into excel, the data is separated by a : on my export. The passwords are encrypted but it will give you a list of users.
Now you have remote ssh working you may find WinSCP is useful, although I mainly use putty.
Also you could try installing Webmin to help with the administration, as it would give you a GUI interface.
I couldn't put links in to the software as its my 1st post but a google will bring them up
Hope the above helps.
I had to give it up after a couple of hours of trying today as I could feel myself burning out, both in the temperature sense given the 32 degree C heat in the office and the career ending burnt out nurons sense.
Thanks both for your help and I will continue to post my progress.
There are currently 1 users browsing this thread. (0 members and 1 guests)