Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-19-2003, 09:48 PM   #1
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Rep: Reputation: 30
Yet another Samba question

I've installed Samba correctly and can view the share from network neighborhood on my Winxp, but I don't have a username a passwd. I've read other threads and it mentions a smbpasswd file but don't know how to create it. I also have a user called apache that I want to use, how do i allow only that user? Thanks...
Old 01-19-2003, 10:11 PM   #2
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Maybe no need to create it.
Just try to add usernames and passwords like this:
smbpasswd -a someusername
Old 01-20-2003, 10:11 PM   #3
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Thanks but that doesn't seem to work. When I issue the command smbpasswd -a apache it promts me to change the password, after that is says it added the user. However if I more the /etc/samba/smbpasswd file it is empty. I want the user apache, which is already a user on the box, to be allowed access to the /home/public dir. When i browse to the public dir it ask for the password for the user Webserver\Guest... Below is my smb.conf file any sugestions?

netbios name = webserver
workgroup = WORKGROUP
log level = 2
log file = /usr/local/samba/var/samba.log
security = share

path = /home/public
browseable = yes
guest account = apache
read only = no

Old 01-20-2003, 11:04 PM   #4
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
you have to make linux users then add samba accounts with the same name as the linux usernames into samba...

in slackware it's:
adduser myname (then follow prompts, this makes the linux account)
smbpasswd -a myname (enter the password, this creates the matching samba account)

PS fill in your distro in your profile or post it, some commands are different in different distributions or have easier to use commands in specific distributions.
Old 01-21-2003, 07:59 PM   #5
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
I added a new user apache2 and then added the same user as a samba user. However when I attempt to connect to the public share it asks me for the password for the 'Webserver\Guest' user. How do I get it to authenticate the 'apache2' user? Is my smb.conf file incorrect?
Old 01-21-2003, 09:41 PM   #6
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Try changing "security = share" to "security = user" in the smb.conf file.

Let me know if it works.


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
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 08:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 07:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 04:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 10:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 07:40 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:16 AM.

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