LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-07-2005, 05:27 PM   #1
robintw
Member
 
Registered: Jul 2004
Posts: 48

Rep: Reputation: 15
Cannot change smbpasswd


Hi,

I have been having problems with Samba networking - and after reading posts on this forum I have realised I need to use smbpasswd to create users and passwords for samba.

I have tried to do this - and although it seems to work fine (ie. doesn't give any error messages) it doesn't seem to write anything to any files. I could see from the logs that it was looking for /etc/samba/private/smbpasswd. This file didn't exist - so i 'touched' it. I then tried using smbpasswd again - and nothing happened to this file. I then tried putting smb password file = /path/to/smbpasswd in my smb.conf and restarting smbd and it still didn't work. I even tried it with changing the file to /etc/smbpasswd (as most things I read on the net seemed to use this file).

I think the problem I have is that smbpasswd doesn't know what file to write to...but I have no idea how to fix this problem.

Does anyone have any ideas? Or am I doing something very stupid?

Thanks in advance,

Robin
 
Old 08-08-2005, 12:38 AM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
How about this?
http://www.faqs.org/docs/securing/chap29sec286.html
 
Old 08-08-2005, 05:44 AM   #3
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks.

I've read that page already in fact - and gave up because I couldn't find the mksmbpasswd.sh file. It doesn't seem to be included in my samba emerge (I installed it via portage from gentoo) and I can't seem to find it to download from the internet.

I do also wonder that even if i do run that - whether the smbpasswd program will start updating the file.

Cheers,

Robin

UPDATE: I have copied the the mksmbpasswd.sh file from another linux box I have and run it. It created the smbpasswd file properly - but the smbpasswd program still doesnt update the file properly.

Last edited by robintw; 08-08-2005 at 05:56 AM.
 
Old 08-09-2005, 01:02 AM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
You do realize that the user must exist in /etc/passswd first.
Then smbpasswd -a [username] will add it to the smbpasswd file.
 
Old 08-09-2005, 03:34 AM   #5
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Hi

Yes I do realise that - but thanks for the help anyway.

I have actually managed to fix this now - I'm not quite sure how - but its working!

Thanks again,

Robin
 
Old 08-09-2005, 10:34 PM   #6
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
I hate that, I'd rather not know why it's broken than why it's working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding users using smbpasswd, or synchronise passwd/smbpasswd gyodai Linux - Networking 2 03-11-2009 02:47 PM
Unable to change existing smbpasswd on user; pam problem?? Geronimo Debian 1 10-13-2004 05:35 PM
smbpasswd -a ... smbpasswd: Command not found Lleb_KCir Linux - Software 7 08-11-2004 11:27 AM
smbpasswd whaase Linux - Networking 3 11-02-2003 03:48 PM
smbpasswd is pissing me off. Need help JoeLinux Linux - Networking 2 06-09-2002 12:04 AM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration