Solaris 10 Windows integration



Dear managers,

thanks for your responses. The bottom line was to run

smbpasswd -a <username>

on the Solaris machine for any user. This actually worked in the
laboratory once but only there. I then tried to migrate that to a
production server and failed.

svcadm enable samba
svcs -l svc:/site/samba:default

fmri svc:/site/samba:default
name Samba Server
enabled true
state online
next_state none
state_time Wed Feb 27 18:35:53 2008
logfile /var/svc/log/site-samba:default.log
restarter svc:/system/svc/restarter:default
contract_id 130149
dependency require_all/none file:///etc/sfw/smb.conf (online)
dependency require_all/error svc:/network/loopback:default (online)
dependency optional_all/error svc:/network/physical:default (online)
dependency require_all/none svc:/system/filesystem/local (online)

I assume smbd should run by now but it does not:

ps -Af | grep smbd
root 9328 27165 0 18:37:22 pts/13 0:00 grep smbd

My /var/svc/manifest/network/samba.xml I used to setup the service with
includes the line

<exec_method name='start' type='method' exec='/lib/svc/method/samba
start' timeout_seconds='60'>

and this file looks as follows

ls -l /lib/svc/method/samba
-rwxrwxr-x 1 root bin 441 Feb 27 15:31
/lib/svc/method/samba

cat /lib/svc/method/samba

#!/bin/sh
#
. /lib/svc/share/smf_include.sh
case "$1" in
start)
echo Starting samba service
/usr/sfw/sbin/smbd -s /etc/sfw/smb.conf -D
/usr/sfw/sbin/nmbd -s /etc/sfw/smb.conf -D
;;
stop)
echo Killing samba service
/usr/bin/pkill smbd
/usr/bin/pkill nmbd
;;
refresh)
echo Refreshing samba service
/usr/bin/pkill -HUP smbd
/usr/bin/pkill -HUP nmbd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0

I also tried to call "/usr/sfw/sbin/smbd -D" directly but it simply
returns (no erro rmessage) and smbd still does not run.

/usr/sfw/sbin/smbd -D
ps -Af | grep smbd
root 9769 27165 0 18:40:32 pts/13 0:00 grep smbd

I am stuck! Any ideas?

Thanks a lot,

Andreas

we need to integrate a Windows 2003 Server into a Solaris
infrastructure. The Solaris server has the home directories in /home.
We have created identical user accounts on Solaris and on the windows
machine. Solaris users are connecting to the windwos machine via an RDP
connection (Sun Ray windows connector). We would like to give users
access to their home dir on the Solaris machine when they are working
on the windows machine (terminal server). We therefore installed and
configured Samba on the Solaris machine. We can access the swat
interface via http://merkur:901.

ps -Af | grep smbd
root 12440 1 0 03:18:17 ? 0:00 /usr/sfw/sbin/smbd
-D
root 12442 12440 0 03:18:17 ? 0:00 /usr/sfw/sbin/smbd
-D

ps -Af | grep nmb
root 12443 1 0 03:18:17 ? 0:00 /usr/sfw/sbin/nmbd
-D

cat /etc/sfw/smb.conf
# Samba config file created using SWAT
# from 192.168.1.5 (192.168.1.5)
# Date: 2008/02/27 03:24:06

[global]
server string = Samba Server
log file = /var/samba/log/log.%m
max log size = 50
dns proxy = No

[homes]
comment = Home Directories
path = /home/%u

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[Build]
path = /Build
valid users = ahoesch
guest ok = Yes

I tried the following on a Soalris machine

smbclient -L merkur
Password:

session setup failed: NT_STATUS_LOGON_FAILURE

I tried and entered my password. But this did not work. What password
is this guy expecting? On the windows machine I tried

net use h: \\192.168.1.1\Build

and

net use h: \\192.168.1.1\beate

I was asked for a password in both cases and then got

Systemfehler 1326 Unknown username or wrong password.

What am I missing? Is it possible to automatically mount the home dir
for each user so that users can access their home dir on the Solaris
machine while working with a rdp session? Can anybody share his
/etc/sfw/smb.conf with me and let me know what needs to be done on the
windows side to establish the connection? Hints are greatly
appreciated!

Thanks a lot in advance,

Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Re: question regarding "samba"
    ... directory on the Solaris system I'd like to share out, ... Will Samba allow me to do this? ... Does samba let you access a Windows directory, ... a Solaris server? ...
    (comp.unix.solaris)
  • Re: "Torn between two OS" - Solaris vs Linux
    ... From a Windows machine as client, ... > I thought that someone had built Samba for Solaris. ... the Linux machine sees it as any local directory. ...
    (comp.os.linux.misc)
  • Re: Windows - Solaris Integration
    ... Samba is good, and serves SMB stuff to Windoze rather well. ... > far from trivial to implement, and entire books have been written on ... There might be some tinkering between Samba and Solaris logins. ... Linux tends to be a flakier *nix compared ...
    (comp.unix.solaris)
  • samba not sending jobs to the printer
    ... my hp 2605dn printer using samba as a print spooler from solaris 10 ... this works from the windows box: ...
    (comp.unix.solaris)
  • Re: question regarding "samba"
    ... Just configure samba on Solaris. ... Does samba let you access a Windows directory, ...
    (comp.unix.solaris)