I have a SAMBA system in place for an XP machine and two different OpenSuse 12.2 machines. However I get prompts for user and Password when I attempt to access one Linux machine from another Linux machine. I have forgotten the passwords. Can someone please outline how I should go about solving this problem. Also when I attempt to transfer files from my Linux machines into the XP machines I get a permissions denied message even though I can read the files that are on the xp machine. Thanks for any replies.
On Each openSUSE PC, install the following bash script where you can as root, change the Samba passwords. Each Samba user must also be a YaST user, but the passwords are not locked togeter, meaning they could be different. Install the SACT bash script if you are serious about making the fix: S.A.C.T. - Samba Automated Configuration Tool and I suggest you read the entire blog post and all its comments I have made before you go further. On the Windows XP PC, you must make sure you have a user name on it you know with a password you know. You must check with other Windows users to find out how to over come a forgotten password in Windows. You must elect to “share” something in Windows as user folders are not shared by default. You must set the PC as to who can use and see the share, even after you have a working user name and password on the Windows PC. If what I say does not sound familiar, your efforts on the Windows PC will most likely fail, but there are lots of Windows forums out there. If you get a Windows to Windows share to work, it will work with Samba as well and so no need to bring Samba or Linux into a Windows conversation unless you want to do so. You have some tasks you need to solve on your own and I wish you the best of Luck.
Ask any other questions you might have.
Thank You,
Hi jdcart15,
You can change one user Samba password using smbpasswd on the Samba server:
# smbpasswd -a *Samba username*
Having read access doesn’t mean you have write access to your XP machine SMB share. This must be configured using Windows Explorer in the shared folder properties. I sadly have no XP machines at hand to give you precise directions. This Microsoft article may help you.
On 8/7/2013 7:36 PM, kalten wrote:
> You can change one user Samba password using smbpasswd on the Samba
> server:
>
> Code:
> --------------------
> # smbpasswd -a -Samba username-
>
> --------------------
To simply change the Samba password you need only:
su -
smbpasswd <username>
The “-a” switch is to add a user to the data base, but is ignored if the name already exists.
An ordinary user may change their Samba password with:
smbpasswd
In this case you will be prompted for the old Samba password before it can be changed.
See the manual entry for smbpasswd(8);
http://www.samba.org/samba/docs/man/manpages/smbpasswd.8.html
P.V.
“We’re all in this together, I’m pulling for you” Red Green
Thanks Fellow users.
I can now exchange files from the linux to linux machines and from xp to both linux machines. However for some reason I cannot take files from either linux machine and transfer to xp. XP will not allow me to turn “read only parameter” off. As soon as I uncheck that box it automatically re-checks it. I think it may have to do with memory limitations of the shared folder on XP. I knew changing the password had to be somewhat simple, but I have lost all of my Linux documentation. Again thank you, I appreciate all help I got on this post.
You are welcome,
Your thread learned me that I can call smbpasswd without the -a ;).
Good luck with Windows XP SMB shares and have fun with openSUSE!
Before we mark this thread as closed, I should say that the problem of not being able to transfer files from linux to xp was solved by using the dos command attrib in xp. You have to manually turn off the read only function. Simply unchecking the dialog box does not work.