LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-27-2003, 06:53 AM   #1
walewis
LQ Newbie
 
Registered: Sep 2003
Location: Montana
Distribution: Redhat 7.1
Posts: 4

Rep: Reputation: 0
samba home directory shares


I have [homes] in smb.conf setup. I have 3 users with home directories. Only one shows up on my win 98 box, and It doesn't accept a password to access it. I have Unix passwords for all accounts and I believe SMB passwords also (it won't accept new SMB passwords.) I also enabled plain-text passwords in the 98 registry in case that was the problem. If anyone has any feed back on why I only get one user's home directory instead of one for each of the three and why it doesn't accept the password I would appreciate it.
 
Old 09-27-2003, 08:31 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Welcome to LQ.

Samba will hide all home directories that aren't available for that user to access. Can you post smb.conf and your smbpasswd file to verify that user accounts have been added.
 
Old 09-27-2003, 05:21 PM   #3
walewis
LQ Newbie
 
Registered: Sep 2003
Location: Montana
Distribution: Redhat 7.1
Posts: 4

Original Poster
Rep: Reputation: 0
Here is the smb.conf

[global]
workgroup = Belkin
printcap name = /etc/printcap
load printers = yes
security = share

[public]
path = /public/one
public = yes
read only = no
printable = no

[printers]
path = /var/spool/samba
browseable = no
printable = yes
public = yes
writable = no
create mode = 0700

[homes]
comment = Home Directories
browseable = no
read only = no
preserve case = yes
short preserve case = yes
create mode =0750


Here is the smbpasswd file

# Samba SMB password file
wayne:502:1AA86EA61ECBD79FE72C57EF50F76A05:354066A2E6295E9194570A2F55B45051:[U ]:LCT-3F75FA7E:
user:500:8B6254F57A505994AAD3B435B51404EE:39AAF8F4748B100EEEE7C3ED9BA4B790:[U ]:LCT-3F75FA9A:
guest:501:8B6254F57A505994AAD3B435B51404EE:39AAF8F4748B100EEEE7C3ED9BA4B790:[U ]:LCT-3F75FAB6:


How should the smbusers file be? I thought it was supposed to update automaically.


# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest


I must have something wrong in these files.
 
Old 09-28-2003, 08:52 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Are you logging into microsoft networks with the same username as you are using for samba?

Another option may be to try resetting the samba passwords - eg:
smbpasswd wayne
 
Old 09-28-2003, 12:34 PM   #5
oski
Member
 
Registered: Aug 2003
Location: GMT +1(+2 summer)
Distribution: Xubuntu 7.10
Posts: 60

Rep: Reputation: 15
I highly recommend to use the SWAT (Samba Web Admistration Tool) to make changes in samba.conf. Anyway, in my humble opinion, you need to configure a share for each home, including in every configuration the path for each home separetely. Once again, download and install swat. Then open your favourite web browser ang go to http://localhost:901/ acces as root and everything becomes easier. It comes (swat) with a fantastic help section.
 
Old 09-28-2003, 01:50 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Quote:
Originally posted by oski
I highly recommend to use the SWAT (Samba Web Admistration Tool) to make changes in samba.conf.
Personanly I wouldn't as it really screws with your config fiels and I have seen it cause problems with password files.
Quote:
Originally posted by oski
Anyway, in my humble opinion, you need to configure a share for each home, including in every configuration the path for each home separetely.
You shouldn;t need ot do this since the generic "homes" share should do this automatically.
Quote:
Originally posted by oski
Once again, download and install swat. Then open your favourite web browser ang go to http://localhost:901/ acces as root and everything becomes easier. It comes (swat) with a fantastic help section.
Up t you but I suggest you backup your config files first. Same goes if you try webmin.

 
Old 09-28-2003, 06:31 PM   #7
walewis
LQ Newbie
 
Registered: Sep 2003
Location: Montana
Distribution: Redhat 7.1
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by david_ross
Are you logging into microsoft networks with the same username as you are using for samba?

No I wasn't. A Redhat book I have gave me the impression that It would show all home directories. Now I see that I have to login to windows as that user to access the corresponding directory. That also helped me figure out the password problem; I was already logged into windows as the user for that directory before I started SMB on the linux box.

What I wanted was all the home directories to show at once so I could map them as drives like I was doing with an NFS client on windows. I guess I'll have to make separate paths, I assume using [private] in smb.conf for each one.

I decided to order a samba book. The linux books don't tell much about samba.

Thanks for the help.
 
Old 09-28-2003, 06:34 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Yes - in that case you will need to create a share for each home dir.
 
Old 09-28-2003, 07:03 PM   #9
walewis
LQ Newbie
 
Registered: Sep 2003
Location: Montana
Distribution: Redhat 7.1
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks again. I've got allot to learn about samba. I'll probably be posting later about the samba printing problems I'm having, if the book I ordered doesn't help. Printing using smbclient is easy, but the other methods I haven't figured out yet
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
win xp home edition and samba home shares scheidel21 Linux - Software 8 10-09-2008 01:47 AM
Samba does not allow writing to public shares / browsing home directories disallowed Xolo Linux - Software 6 02-14-2005 05:22 PM
Apache subdomains like Samba home-shares toffi22 Linux - Software 1 01-30-2005 08:16 PM
/mnt directory stalls because of samba shares quantum10 Linux - Software 0 05-14-2004 11:41 AM
XP home fails to connect to samba shares J_Szucs Linux - Software 1 05-16-2003 11:21 PM


All times are GMT -5. The time now is 05:01 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration