LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 12-15-2007, 10:52 AM   #1
jim.stanley
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
Default Samba Password?


Hello all,

I'm pleased so far with the latest Kubuntu (7.10) setup, and am trying to integrate it with the machines running That Other OS in our den. Samba was installed by apt-get, and I have a share off my home dir that's configured thus (through System Settings/Sharing/File Sharing/Advanced Samba Settings):

Unspecified users: allow
Specified user: root, allow writable access
No guest accounts: (looks like system users, anyway)

Trouble is, when I try to navigate to it on the other machines, I see Mshome (the samba network), then josquin (machine name), and it asks for a password. Mine doesn't work, the root password doesn't work, and I'm stuck.

One troubling thing is that clicking on System | Samba from KMenu does absolutely nothing. Perhaps a samba-config package isn't installed?

I think I do have SWAT, but I also have XAMPP installed, so my Apache server isn't where it normally is. Does that affect SWAT?

Any help for a person who shouldn't be a newbie by now, but still is.....

Thanks

Jim Stanley
 
Old 12-15-2007, 11:55 AM   #2
drokmed
Member
 
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 219

Rep: Reputation: 30
Sorry, there is no short answer.

Samba is incredibly hard to learn and configure, when you are new to it. It is one of the harder linux apps to master. Know the /etc/samba/smb.conf file.

User accounts can be very tricky, and there are many ways to do them, depending on how you store the user accounts. You not only have to create the samba user, you have to link it to a linux user, and make sure all permissions are inplace and correct, then lastly make sure smb.conf file grants them the right permissions.

I would have *thought* apt-get install samba would have prompted for the samba root password, but I may be mistaken. However, you will not be connecting to the samba server using the samba root account. You have to create user accounts for samba.

One of the more popular and easier ways to create accounts is to install the smbldap-tools package, and configure it. It's not easy, but when configured, is the easiest way by far to add users. Google for smbldap-tools howto, should be some for ubuntu or debian.

You can always do it manually... I'm looking for URL's... here's one:
http://www.brennan.id.au/18-Samba.html

Forget about SWAT, it's worthless, as are most tools. You have to know how to do things manually before any of the so called tools will be of any help.

I'd suggest goggling for a 'samba howto' for either ubuntu or debian. There are lots of them out there.

Also check the ubuntu forums for howtos.

The samba site has some excellent documents on it. I know, you shouldn't have to read multiple 1000 page documents to get an answer, but believe me, the further you dive into samba, the more you will need to read.
 
Old 12-15-2007, 12:59 PM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,285
Blog Entries: 1

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by jim.stanley View Post
Trouble is, when I try to navigate to it on the other machines, I see Mshome (the samba network), then josquin (machine name), and it asks for a password. Mine doesn't work, the root password doesn't work, and I'm stuck.
You probably need to add passwords to the smbpasswd file. The command to use is "smbpasswd -a <username>". It will look like this:

[machine:~]:smbpasswd -a jstanley
New SMB password:
Retype new SMB password:
This will only work if "jstanley" already exists as a normal user on the machine. You can also use "smbpasswd -a root", and that will always work. Since you are only allowing write access to root, that may be all you need.
 
Old 12-16-2007, 09:23 AM   #4
BashTin
Member
 
Registered: May 2003
Location: West Midlands
Distribution: Slackware 13 x86_64
Posts: 200

Rep: Reputation: 30
Hi,
just spent the best part of 3 days going through this myself on Slacky 11 and as mentioned the only real way to know what is going on for sure is to do it manually.

Some things to do and check.

As David1357 says make sure you create the passwords as he shows, the users must exist on the machine running Samba or it will refuse to create a pw with that user name.

You can check for your samba password file as ROOT, it will not be readable by anyone else..
Look in /etc/samba/private/ for smbpasswd & passdb.tdb, or similar.

If that does not help paste the contents of smb.conf here and I will do my best to help. Should be at /etc/samba/smb.conf or can find it with 'slocate smb.conf' (again you may need to be root).

Oh and if you can it would be really helpful if you can edit out all commented out stuff you don't need, copy it first though :-)

BashTin.
 
Old 12-17-2007, 09:09 AM   #5
drokmed
Member
 
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 219

Rep: Reputation: 30
Quote:
Originally Posted by BashTin View Post
Hi,
Oh and if you can it would be really helpful if you can edit out all commented out stuff you don't need, copy it first though :-)
testparm > output.txt

Post the txt file here
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
default root password mmarkvillanueva Slackware - Installation 1 12-20-2005 10:05 PM
default password tvsskumar Linux - General 2 09-21-2004 08:48 PM
Default root password thejazzman Linare 4 09-17-2004 02:46 PM
Is there a default password after first install? AKA Ryan Linux - Newbie 1 05-05-2004 10:33 AM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM


All times are GMT -5. The time now is 05:14 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
Open Source Consulting | Domain Registration