MarvinFS
2011-Aug-06 06:03 UTC
[Samba] 3.5.9: logon scripts are not working under non root user
I have issues running logon script on samba 3.5.9 (freebsd 8.2p1) under non root user. When i login to the XP box under root all is OK. logon script is working, but it's totally not working under all other users. turning on debugging reveals that under non root it's incorrectly parsing the logon script name from config (adding full network path to filename) unix_convert called on file "ancor-srv/netlogon/logon.bat" unix_convert begin: name = ancor-srv/netlogon/logon.bat, dirpath = , start ancor-srv/netlogon/logon.bat Intermediate not found ancor-srv but it's parsing correctly when login under root user unix_convert called on file "logon.bat" unix_convert begin: name = logon.bat, dirpath = , start = logon.bat stat_cache_add: Added entry (21f694e0:size 9) LOGON.BAT -> logon.bat conversion of base_name finished logon.bat -> logon.bat check_reduced_name [logon.bat] [/mnt/750g/netlogon] check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat call_trans2qfilepathinfo logon.bat (fnum = -1) level=1004 call=5 total_data=0 Please help! parts from config and debug logs are below [global] workgroup = ATLANTA netbios name = ANCOR-SRV realm = ATLANTA.LOCAL server string = ANCOR-SRV security = user log file = /var/log/samba/log.%m max log size = 1000 logon path logon drive logon home template homedir admin users = "@ATLANTA\Domain Admins" logon script = logon.bat [IPC$] path = /tmp [netlogon] path = /mnt/750g/netlogon # admin users = "@ATLANTA\Domain Users" read only = no browseable = yes guest ok=yes root at ancor-srv /usr/local/etc]# ls -la /mnt/750g/ total 14 drwxr-xr-x 7 root wheel 512 Aug 3 15:37 . drwxr-xr-x 3 root wheel 512 Aug 3 09:58 .. drwxrwxrwx 2 root ntusers 512 Aug 4 13:40 netlogon [root at ancor-srv /usr/local/etc]# ls -la /mnt/750g/netlogon/ total 282 drwxrwxrwx 2 root ntusers 512 Aug 4 13:40 . drwxr-xr-x 7 root wheel 512 Aug 3 15:37 .. -rwxrwxrwx 1 root ntusers 733 Aug 4 10:35 defprinter.vbs -rwxrwxrwx 1 root ntusers 289 Aug 4 13:40 logon.bat -rwxrwxrwx 1 root ntusers 262144 Aug 4 13:53 ntconfig.pol *login under NON ROOT user: * [2011/08/06 11:04:02.138601, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [.] [/mnt/750g/netlogon] [2011/08/06 11:04:02.139054, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: . reduced to /mnt/750g/netlogon [2011/08/06 11:04:02.139788, 3] smbd/trans2.c:5226(call_trans2qfilepathinfo) -- [2011/08/06 11:04:02.268182, 5] smbd/filename.c:169(unix_convert) unix_convert called on file "ancor-srv/netlogon/logon.bat" [2011/08/06 11:04:02.268632, 5] smbd/filename.c:328(unix_convert) unix_convert begin: name = ancor-srv/netlogon/logon.bat, dirpath = , start = ancor-srv/netlogon/logon.bat [2011/08/06 11:04:02.269712, 5] smbd/filename.c:547(unix_convert) Intermediate not found ancor-srv [2011/08/06 11:04:02.270271, 3] smbd/error.c:80(error_packet_set) error packet at smbd/trans2.c(5129) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND -- *LOGIN under ROOT USER:* [2011/08/06 11:30:54.449610, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [.] [/mnt/750g/netlogon] [2011/08/06 11:30:54.450091, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: . reduced to /mnt/750g/netlogon [2011/08/06 11:30:54.450866, 3] smbd/trans2.c:5226(call_trans2qfilepathinfo) -- [2011/08/06 11:30:54.497519, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [.] [/mnt/750g/netlogon] [2011/08/06 11:30:54.498003, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: . reduced to /mnt/750g/netlogon [2011/08/06 11:30:54.498775, 3] smbd/trans2.c:5226(call_trans2qfilepathinfo) -- [2011/08/06 11:30:54.622072, 5] smbd/filename.c:169(unix_convert) unix_convert called on file "logon.bat" [2011/08/06 11:30:54.622532, 5] smbd/filename.c:328(unix_convert) unix_convert begin: name = logon.bat, dirpath = , start = logon.bat [2011/08/06 11:30:54.623341, 5] smbd/statcache.c:138(stat_cache_add) stat_cache_add: Added entry (21f694e0:size 9) LOGON.BAT -> logon.bat [2011/08/06 11:30:54.624078, 5] smbd/filename.c:351(unix_convert) conversion of base_name finished logon.bat -> logon.bat [2011/08/06 11:30:54.624846, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:54.625669, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat [2011/08/06 11:30:54.626443, 3] smbd/trans2.c:5226(call_trans2qfilepathinfo) call_trans2qfilepathinfo logon.bat (fnum = -1) level=1004 call=5 total_data=0 [2011/08/06 11:30:54.627195, 5] smbd/trans2.c:4198(smbd_do_qfilepathinfo) smbd_do_qfilepathinfo: logon.bat (fnum = -1) level=1004 max_data=40 [2011/08/06 11:30:54.628269, 5] smbd/trans2.c:4442(smbd_do_qfilepathinfo) -- Intermediate not found RECYCLER [2011/08/06 11:30:56.058036, 3] smbd/error.c:80(error_packet_set) error packet at smbd/trans2.c(5129) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND -- [2011/08/06 11:30:56.622520, 4] smbd/vfs.c:751(vfs_ChDir) vfs_ChDir to /mnt/750g/netlogon [2011/08/06 11:30:56.622628, 5] smbd/filename.c:169(unix_convert) unix_convert called on file "logon.bat" [2011/08/06 11:30:56.622766, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:56.622866, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat [2011/08/06 11:30:56.622937, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:56.623016, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat [2011/08/06 11:30:56.623069, 5] smbd/files.c:119(file_new) -- [2011/08/06 11:30:56.623106, 3] smbd/dosmode.c:166(unix_mode) unix_mode(logon.bat) returning 0644 [2011/08/06 11:30:56.623152, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:56.623231, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat [2011/08/06 11:30:56.623400, 4] smbd/open.c:1990(open_file_ntcreate) -- [2011/08/06 11:30:56.623511, 2] smbd/open.c:647(open_file) root opened file logon.bat read=Yes write=No (numopen=2) [2011/08/06 11:30:56.623556, 5] smbd/oplock.c:86(set_file_oplock) set_file_oplock: granted oplock on file logon.bat, 62:4ddf402:0/8, tv_sec = 4e3cd190, tv_usec = 981d7 [2011/08/06 11:30:56.623824, 5] smbd/nttrans.c:722(reply_ntcreate_and_X) reply_ntcreate_and_X: fnum = 10135, open name = logon.bat [2011/08/06 11:30:56.624400, 3] smbd/process.c:1489(process_smb) -- [2011/08/06 11:30:56.624812, 3] smbd/trans2.c:5226(call_trans2qfilepathinfo) call_trans2qfilepathinfo logon.bat (fnum = 10135) level=1006 call=7 total_data=0 [2011/08/06 11:30:56.624852, 5] smbd/trans2.c:4198(smbd_do_qfilepathinfo) smbd_do_qfilepathinfo: logon.bat (fnum = 10135) level=1006 max_data=8 [2011/08/06 11:30:56.625017, 5] lib/util.c:617(show_msg) -- [2011/08/06 11:30:56.626864, 5] smbd/filename.c:169(unix_convert) unix_convert called on file "logon.bat" [2011/08/06 11:30:56.626985, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:56.627088, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat [2011/08/06 11:30:56.627132, 5] smbd/trans2.c:2333(call_trans2findfirst) dir=./, mask = logon.bat [2011/08/06 11:30:56.627162, 5] smbd/dir.c:423(dptr_create) -- [2011/08/06 11:30:56.627200, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [./] [/mnt/750g/netlogon] [2011/08/06 11:30:56.627236, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: ./ reduced to /mnt/750g/netlogon [2011/08/06 11:30:56.627341, 3] smbd/dir.c:544(dptr_create) -- [2011/08/06 11:30:56.627390, 4] smbd/trans2.c:2400(call_trans2findfirst) dptr_num is 256, wcard = logon.bat, attr = 22 [2011/08/06 11:30:56.627648, 3] smbd/dir.c:993(smbd_dirptr_get_entry) smbd_dirptr_get_entry mask=[logon.bat] found ./logon.bat fname=logon.bat (logon.bat) [2011/08/06 11:30:56.627730, 5] smbd/trans2.c:2466(call_trans2findfirst) -- [2011/08/06 11:30:56.628072, 4] smbd/trans2.c:2510(call_trans2findfirst) SMBtrans2 mask=logon.bat directory=./ dirtype=22 numentries=1 [2011/08/06 11:30:56.629719, 3] smbd/process.c:1489(process_smb) -- [2011/08/06 11:30:56.807004, 5] smbd/filename.c:169(unix_convert) unix_convert called on file "logon.bat" [2011/08/06 11:30:56.807113, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:56.807221, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat [2011/08/06 11:30:56.807288, 3] smbd/vfs.c:881(check_reduced_name) check_reduced_name [logon.bat] [/mnt/750g/netlogon] [2011/08/06 11:30:56.807374, 3] smbd/vfs.c:1038(check_reduced_name) check_reduced_name: logon.bat reduced to /mnt/750g/netlogon/logon.bat --- Best regards, MarvinFS MARVIN THE PARANOID ANDROID (C) Douglas Adams
TAKAHASHI Motonobu
2011-Aug-06 07:45 UTC
[Samba] 3.5.9: logon scripts are not working under non root user
From: MarvinFS <marvinfs at gmail.com> Date: Sat, 6 Aug 2011 12:03:32 +0600> I have issues running logon script on samba 3.5.9 (freebsd 8.2p1) under non > root user. > When i login to the XP box under root all is OK. logon script is working, > but it's totally not working under all other users.Show both "pdbedit -v root" and "pdbedit -v non-root", especialy "Logon Script:" line. "logon.bat" is set at both? --- TAKAHASHI Motonobu <monyo at samba.gr.jp>
Reasonably Related Threads
- VFS plug-in for Gluster breaks case sensitivity.
- plenty of vacuuuming processes
- unix fifo inaccessible via samba share
- with streams_xattr enabled, ads are written correctly but not retrieved
- filename_convert_internal: checkname failed NT_STATUS_INVALID_PARAMETER