LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 08-09-2004, 05:03 PM   #1
takatam
LQ Newbie
 
Registered: Apr 2004
Location: Zürich, Switzerland
Posts: 17

Rep: Reputation: 0
Samba 2.2.8 - Unable to access shared resources


i'm trying to setup my samba 2.2.8a server as a PDC to be accessed by win laptops on a mandrake 9.2 based PC.

after countless hours reading and trying i have been able to add the laptops to the domain. but when i log in with my username it complains that the system is not able to locate my roaming profile. details: The network path was not found.

what's the cause for this? i have the feeling this is related to the access rights of the different profile directories samba uses. how do i need to set them so that only the ones that need them can actually access these folders?

but even worse, i don't have the permission to access any of the shares from samba. message: There are currently no logon servers available to service the logon request. both smbd and nmbd are running.

where's the problem? could it be that i'm still logged in from another station? i was before but logged out and restarde smbd.

i've set the rights to a+rwx for
rwxrwxrwx on /pdc/profiles
rwxrwxrwx on /var/lib/samba/profiles
rwxrwxrwx on /var/lib/samba/netlogon

i've created the local accounts by hand (the script did not seem to work) for my laptop:

/etc/passwd:
laptop03$:x:700:700:Machine Account:/dev/null:/bin/false
tto:x:505:502efault User:/working/users/tto:/bin/bash

/etc/samba/smbpasswd
laptop03$:700:B905609F1B0ECB566B7FA287A74C4327:8500887CAE0B90AD0D82200CB33BC4F8:[W ]:LCT-4117D45D:
tto:505:0979254E770DE43DAAD3B435B51404EE:066B09ABA1B35BC6D2DC04FA85A4DB95:[UX ]:LCT-402B8877:

here's my smb.conf file:
**********************************************
[global]
server string = Samba Server %v

printcap name = cups
load printers = yes
printing = cups
printer admin = @adm

log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
;encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

netbios name = server01
workgroup = etinveni
os level = 64

;passdb backend = smbpasswd
preferred master = yes
domain master = yes
local master = yes

domain logons = yes
security = user
encrypt passwords = yes

logon path = \\%L\pdc\profiles\%u
logon drive = H:
logon home = \\%L\pdc\%U\.profile
;logon script = logon.cmd

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
read only = yes
write list = ntadmin
gues ok = yes

[profiles]
path = /var/lib/samba/profiles
browseable = no
guest ok = yes
read only = no
create mask = 0600
directory mask = 0700

root preexec = PROFILE=/var/lib/samba/profiles/%u; if [ ! -e $PROFILE ]; \
then mkdir -pm700 $PROFILE; chown %u.%g $PROFILE;fi

[homes]
comment = Home Directories
path = /working/users/%U
browseable = no
writable = yes
create mode = 0664
directory mode = 0775

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

[archieve]
path = /archive
public = no
guest only = no
writeable = yes
printable = no
**********************************************

appreciate any help
 
Old 08-10-2004, 04:42 AM   #2
takatam
LQ Newbie
 
Registered: Apr 2004
Location: Zürich, Switzerland
Posts: 17

Original Poster
Rep: Reputation: 0
Samba 2.2.8 - Unable to access shared resources

i've managed to solve the problems by

- changing the logon path to \\%L\Profiles\%U
- changing the logon home to \\%L\%U\.profile
- set password encryption
- set log level = 2 (for debugging)

this solved the problem of the user not having anywhere to put the profile. i'm not quite sure where these directories point to but it works this way. changing these two things solved both of my problems at the same time.

also, i've given up on the script and just add the machines by hand. more work, less secure on large networks but a lot less problems.
 
Old 08-10-2004, 06:22 AM   #3
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Your profiles problem could have been to do with linux permissions. Only the Samba server itself needs access to the linux files as you then grant access to Samba users via the smb.conf. I found that the GID of any directory had to be root for Samba to control it - the UID could be anything.
 
  


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
How does linux access shared resources in windows? QiangWan Linux - Newbie 1 05-18-2005 12:00 AM
no access to shared directories with samba Meriadoc Linux - Networking 1 03-13-2005 07:42 AM
Unable to access my Linux+Samba from MS-Win guarriman Linux - General 3 01-03-2005 12:05 PM
SAMBA:unable to access win2k from linx apit Linux - Networking 1 12-01-2004 08:19 PM
Samba / XP login failures while tring to access shared files (works with win2k) Zero-0-Effect General 2 01-24-2004 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration