LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2004, 12:45 AM   #1
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
help adding a smbuser and setting password


I have smb running but when I go to add a user with the command smbuser the command is not there.

[root@server samba]# smbuser amanda
-bash: smbuser: command not found
[root@server samba]#

so I edited the smbusers file with VI and added the maping. After adding the mapping I tried to set a password. and I get this

[root@server samba]# smbpasswd amanda
New SMB password:
Retype new SMB password:
Failed to find entry for user amanda.
Failed to modify password entry for user amanda
[root@server samba]#

The thing is I can change the smb password for existing users but not users I have manualy added by editing the smbusers file.

The command smbuser worked before but has stoped working now. If i open gnome I can go to the the samba tools and add users and set there passwords just fine. but why can I not do it from the command line.

I have done it before on this install before i updated from red hat update site.

here is a copy of my smbusers file

[root@server samba]# cat smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
aaron = default
amanda = amanda
[root@server samba]#

Am I doing some thing wrong or what is going on?

Last edited by aaronruss; 05-27-2004 at 12:47 AM.
 
Old 05-27-2004, 10:42 PM   #2
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
To be honest I have *never* heard about a command smbuser for SAMBA. However, I have to admit that I am using SAMBA since V2 so
it can be that in prior versions there was such command.

Users in samba are added with smbpasswd -a user_name

Be aware that the user you add (in the above example user_name) has to have a *valid* Linux (UNIX) account,
*prior* adding to SAMBA !!!!

Also, usually the users are added to the smbpasswd (called just the same like the command) file and not
to smbuser.

In my distro (SuSE) the smbpasswd command is located in /usr/bin
and the file containing the account informations in /etc/samba/.

I do not know what your smbuser file contains, but it's *definitly* not a valid format for smbpasswd, since
there isn't any field that looks like a password.

Tak a look on your smbpasswd file and there you can find the valid users.

You can get more information about the smbpasswd in the man pages: man smbpasswd

Last edited by Vlad-A; 05-27-2004 at 10:43 PM.
 
  


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
Adding password to squid depam Linux - Software 1 10-18-2005 05:14 AM
Adding SSH username/password Temujin_12 *BSD 1 12-31-2004 10:36 PM
Adding a password satimis Linux - General 4 06-30-2004 09:58 PM
Adding user for password folder tommytomato Linux - Security 3 02-24-2004 06:38 AM
ProFTP-adding user and password ? lostboy Linux - General 1 07-04-2003 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 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