LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba and Home Directories (https://www.linuxquestions.org/questions/linux-networking-3/samba-and-home-directories-108080/)

dlucas10 10-24-2003 02:21 PM

Samba and Home Directories
 
Samba and Home Directories

Ok, I think I got winbind to authenticate off the win2k domain. I’m running Red Hat 9.0 with Samba 3.0. All my other shares work except my home directories. Windows says that I don’t have access to the network share. Here is my smb.conf file:

[global]
workgroup = LUCASSAURUS
netbios name = guinness
server string = Guinness RedHat Samba Server %v
security = ads
realm = LUCASSAURUS.COM
password server = 192.168.0.3
auth methods = winbind
passwd program = /usr/bin/passwd %u
passwd chat = *New*password:* %n\r *Retype*new*password:* %n\r *passwd:*all*authentication*tokens*updated*successfully.* \r
unix password sync = Yes
encrypt passwords = yes
log level = 4
log file = /var/log/samba/log.%m
max log size = 500
name resolve order = wins, host, bcast
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
add user script = /usr/sbin/useradd -G lucas -d %H -s /bin/bash -m %U
delete user script = /usr/sbin/userdel -r %u
logon path =
preferred master = No
local master = no
domain master = No
wins server = 192.168.0.3
lock directory = /var/lock/samba/locks
winbind enable local accounts = yes
winbind separator = +
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = no
obey pam restrictions = yes
admin users = @LUCASSAURUS+Domain Admins
force group = LUCASSAURUS+Lucas
create mask = 0666
directory mask = 0777
hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1/255.255.255.0

[homes]
comment = Home Directories for: %U
valid users = %U
read only = No
create mask = 0600
directory mask = 0700
browseable = No

Does anyone have any ideas as to why this isn’t working???

Also, can any one tell me why the linux box is not creating the account automatically??

david_ross 10-24-2003 03:34 PM

Try changing:
valid users = %U

To:
valid users = %S

dlucas10 10-24-2003 05:51 PM

I just tried that with no luck. :( If I open a command prompt on my desktop machine and type 'net view \\guinness' I get:

Shared resources at \\guinness

Guinness RedHat Samba Server 3.0.0

Share name Type Used as Comment

----------------------------------------------------------------------
dave Disk Z: Home Directories for: lucassaurus.com_dave

Do you have any other suggestions??

:confused:

dlucas10 10-24-2003 06:22 PM

OK, so I got my desktop machine to connect to my home directory and I feel stupid... :o I forgot that I needed to change the owner of the directories to be that of the domain. So that works now.

One last thing - if anyone can please help me figure out how to get the users added automatically after I add them to the windows domain I'll be one happy camper!!! I know winbind is working because I can have a user who does not have an account on the linux box to log in via telnet but the home directory is not added.

sokol 10-27-2003 03:42 PM

Uhm, I have a question.

When accessing my samba-shared directories from Windows, there is always a 'Printers' icon visible. Well, it is not annoying or disruptive, but I'd rather like samba not to display that icon. How to achieve it?

I'm quite a newbie, so forgive me If I asked a stupid question.

david_ross 10-28-2003 12:51 PM

Welcome to LQ.

Just remove the printer share from smb.conf

I future please start a new thread if you have a new question. Thanks :)


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