LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-02-2004, 05:35 AM   #1
geodo
LQ Newbie
 
Registered: May 2004
Posts: 12

Rep: Reputation: 0
add samba user (Samba 3.0.2)


Hi!

I hope I'm in the right forum. As I'm still quite new to the world of Linux I always find it a bit hard to find out... If I'm at the wrong place I want to apologise!

I' running a SuSE9.0 machine with Samba 3.0.2a as a PDC. A few days ago I added some Samba users with "smbpasswd -a username password" and that was all working fine.
Now the smbpasswd command isn't found anymore. A colleague of mine had the idea that the reason for that might be some updates I have done (automatically via Yast Online Update - so I don't really now what I have updated...). He said that the command smbpasswd shall be displaced by the command net.

So my questions are: how can I add samba users?
a) could it be, that smbpasswd is not working anymore as it is displaced by the net command?
if not, how can I get the smbpasswd command going again?
or if a) is true:
b) how do you use the net command? (I looked at the man page, but somehow can't find out how to do it - seem not to be experienced or clever enough - Sorry!)

Thanx a buch!!
 
Old 12-02-2004, 05:49 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Try:
Code:
locate smbpasswd
to find the path to smbpasswd. The fact that it's not running right away is because it's not anymore in your PATH
 
Old 12-02-2004, 07:28 AM   #3
geodo
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Code:
locate smbpasswd
returned
Code:
locate: /var/lib/locatedb: No such file or directory
???

i installed locate (/usr/bin/locate), but don't konw how to handle that message
 
Old 12-02-2004, 07:47 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You must run updatedb regularly for locate to work well. You can also run:
Code:
find / -name smbpasswd
to find the file you want.
 
Old 12-02-2004, 08:15 AM   #5
geodo
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Sorry, maybe I'm just not getting what you mean.
I'm getting a list (see below) of locations where smbpasswd is, but even changing to that locations and trying to use that command always results in the same message ("command not found")...

/etc/gpm/samba/smbpasswd
/etc/samba/smbpasswd
 
Old 12-02-2004, 08:36 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I guess that /etc/samba/smbpasswd is the file where samba stores it's passwords. The other one I don't know what it is since I don't use Suse. But you can give it a try entering /etc/gpm/samba/ and typing ./smbpasswd (as root).
If that does not work I'm afraid you must use Yast to reinstall samba
 
  


Reply



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
add SAMBA user ashley75 Linux - General 13 07-19-2005 05:53 PM
SAMBA PDC add user script error hitotito Linux - Networking 1 04-22-2005 09:45 PM
Samba 3.0: net user add - problem with password geodo Linux - Networking 1 12-06-2004 11:52 AM
What add user script you use for Samba 3.0.3-5? subaruwrx Linux - Networking 3 07-19-2004 11:19 AM
Samba user add question phlome Linux - Networking 1 09-10-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration