Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > Problem in creating samba server user

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 2 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 8
Problem in creating samba server user

Hi All,

1. Initially I have created samba users using samba server UI tool. And works fine. And after a month there is a requirement to create a few more users and when I tried to open the Samba server UI tool, I am not able to open it so I tried from the command in the same Redhat linux console.
$ system-config-samba
ERROR Showing: system-config-samba requires a currently running X server.

2. When I tried to create samba users through Samba server UI, where do the passwords will store. Can i get the location.

Can you please help me on this.

Thanks in advance,
Madhu
madhuti is offline  


Reply With Quote
Old 2 Weeks Ago   #2 (permalink)
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 184
It may be that something is broken for the UI which is not related to samba. You should try just adding the users from the command line for now, then fix the UI after you've gotten the users added:

Samba User
Creation of the samba user must be done by root, but a user can change their own password using smbpasswd. Login names should be LOWERCASE

smbpasswd -a new_user_name

Additional Information
You were wondering where the passwords were stored. This file is called smbpasswd, but can be found in different spots depending on your distro or samba install. Mine is in /var/lib/samba/private/, otherwise it is commonly in /etc/samba/. If you can't find it, do a locate smbpasswd and look for one that isn't in a bin folder. However, editing this file directly is sort of useless since the smbpasswd command will assign an encrypted password. Therefore, editing the password in the file doesn't really work.

System User
If you also need to add them as a linux user then the command is similar

useradd -m -g users -c "Put comment here" new_user_name

(m creates the home directory, g is the default group)

Then to set a password:

passwd new_user_name
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:22 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2