LinuxQuestions.org
Review your favorite Linux distribution.
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 06-05-2003, 01:44 PM   #1
alris
LQ Newbie
 
Registered: Jun 2003
Location: Hong Kong
Posts: 9

Rep: Reputation: 0
Unhappy logon script not working (it has more than 8 chars)


hello,

I have a strange problem here:server RH 7.1/samba 2.2.1 compiled from source with --with-pam--with-pam_smbpass, clear text passwords.Clients are win98; they logon and I have a *.bat for every user which maps some shares. Now, if the user name has less the 8 chars, all is ok; if the username has more than 8, the bat has also more (%U.bat) from some clients it's working, from others not. I'm climbing the walls; I'm working on this since yesterday and I came to no conclusion(some clients work, some don't) Maybe it's a registry problem on the win98/win98se side...
Here is the relevant part from my setup:
[global]
....
logon script = %U.bat
logon home = \\%L\%U
logon path = \\%L\profiles\%U
domain logons = Yes
...

[netlogon]
comment = Network Logon Service
path = /usr/local/samba/netlogon
admin users = admin
read only = yes
public = yes
locking = no
browseable = yes
share modes = no
...
the permissions are ok on the linux side: 755 for the netlogon
and *.bat files; the format of the username is "aname_asurname", and the bat is aname_asurname.bat; from the clients that don't work it prints C:\WINDOWS>Access denied - Z:\ANAME~@%.BAT it logs on ok, though; if I run the the bat locally, it maps
the drives...

any ideas?
 
Old 06-06-2003, 03:37 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
try changing that one rule where the value is 8....lemme find out what it is....

aww hell, i was playing around with swat and f-ed up my old smb.conf so it's
not inthere anymore but i think its called password level...that's the only thing
i remember that had a value of 8 but i believe that dealt with passwords and not
login names themselves.
 
  


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
execute a script upon logon Starch Linux - Newbie 3 05-12-2005 04:04 PM
Logon script icedude Linux - Newbie 5 04-19-2005 08:01 AM
Logon Script.... vamsi_samavedam Linux - Distributions 1 05-25-2004 08:46 AM
How to remove or strip control chars in the 'script' utility? fieldmethods Linux - General 1 10-24-2003 01:11 PM
logon script not working (it has more than 8 chars) alris Linux - General 0 06-05-2003 01:46 PM

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

All times are GMT -5. The time now is 03:10 AM.

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
Open Source Consulting | Domain Registration