Hello, I have the samba zone with shared IP, pvm, domU: # uname -srvmpi SunOS 5.11 snv_89 i86pc i386 i86xpv Is there any way to enable samba service in this zone on pvm domU ? [2008/06/13 13:18:08, 0] lib/util_sock.c:(830) bind failed on port 445 socket_addr = 10.1.1.147. Error = Permission denied Dom0 (sxce90) has only one NIC. # ifconfig -a lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 xnf0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 inet 10.1.1.147 netmask ffffff00 broadcast 10.1.1.255 # dladm show-dev dladm: insufficient privileges # dladm show-phys dladm: insufficient privileges Regards This message posted from opensolaris.org
On 13 Jun 2008, at 12:30pm, Piotr Jasiukajtis wrote:> I have the samba zone with shared IP, pvm, domU: > > # uname -srvmpi > SunOS 5.11 snv_89 i86pc i386 i86xpv > > Is there any way to enable samba service in this zone on pvm domU ?It should be just as with any other machine. (I''ve no idea what that is, as I''ve not used samba in some years.)> [2008/06/13 13:18:08, 0] lib/util_sock.c:(830) > bind failed on port 445 socket_addr = 10.1.1.147. > Error = Permission denied] > > > Dom0 (sxce90) has only one NIC. > > # ifconfig -a > lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> > mtu 8232 index 1 > inet 127.0.0.1 netmask ff000000 > xnf0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu > 1500 index 2 > inet 10.1.1.147 netmask ffffff00 broadcast 10.1.1.255 > # dladm show-dev > dladm: insufficient privileges > # dladm show-phys > dladm: insufficient privilegesThis all suggests that you are not root. What''s the output of ''id -a''?
Global zone: # uname -vi snv_89 i86xpv # dladm show-dev LINK STATE SPEED DUPLEX xnf0 unknown 0Mb unknown # dladm show-link LINK CLASS MTU STATE OVER xnf0 phys 1500 unknown -- # id -a uid=0(root) gid=0(root) groups=0(root),1(other),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp),9(nuucp),12(daemon) Non global zone: # uname -vi snv_89 i86xpv # ifconfig -a lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 xnf0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 inet 10.1.1.147 netmask ffffff00 broadcast 10.1.1.255 # dladm show-dev dladm: insufficient privileges # dladm show-link dladm: insufficient privileges # tail /var/samba/log/log.smbd [2008/06/13 13:18:08, 0] smbd/server.c:(944) smbd version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team 1992-2008 [2008/06/13 13:18:08, 0] printing/print_cups.c:(69) Unable to connect to CUPS server localhost:631 - Network is unreachable [2008/06/13 13:18:08, 0] printing/print_cups.c:(69) Unable to connect to CUPS server localhost:631 - Network is unreachable [2008/06/13 13:18:08, 0] lib/util_sock.c:(830) bind failed on port 445 socket_addr = 10.1.1.147. Error = Permission denied 2008/6/13 David Edmondson <dme@sun.com>:> > On 13 Jun 2008, at 12:30pm, Piotr Jasiukajtis wrote: >> >> I have the samba zone with shared IP, pvm, domU: >> >> # uname -srvmpi >> SunOS 5.11 snv_89 i86pc i386 i86xpv >> >> Is there any way to enable samba service in this zone on pvm domU ? > > It should be just as with any other machine. (I''ve no idea what that is, as > I''ve not used samba in some years.) > >> [2008/06/13 13:18:08, 0] lib/util_sock.c:(830) >> bind failed on port 445 socket_addr = 10.1.1.147. >> Error = Permission denied] >> >> >> Dom0 (sxce90) has only one NIC. >> >> # ifconfig -a >> lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu >> 8232 index 1 >> inet 127.0.0.1 netmask ff000000 >> xnf0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 >> index 2 >> inet 10.1.1.147 netmask ffffff00 broadcast 10.1.1.255 >> # dladm show-dev >> dladm: insufficient privileges >> # dladm show-phys >> dladm: insufficient privileges > > This all suggests that you are not root. What''s the output of ''id -a''? > >-- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
Btw, it works from domU global zone, but not from domU non global zone. 2008/6/13 Piotr Jasiukajtis <estseg@gmail.com>:> Global zone: > > # uname -vi > snv_89 i86xpv > > # dladm show-dev > LINK STATE SPEED DUPLEX > xnf0 unknown 0Mb unknown > # dladm show-link > LINK CLASS MTU STATE OVER > xnf0 phys 1500 unknown -- > # id -a > uid=0(root) gid=0(root) > groups=0(root),1(other),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp),9(nuucp),12(daemon) > > > > Non global zone: > > # uname -vi > snv_89 i86xpv > > # ifconfig -a > lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> > mtu 8232 index 1 > inet 127.0.0.1 netmask ff000000 > xnf0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu > 1500 index 2 > inet 10.1.1.147 netmask ffffff00 broadcast 10.1.1.255 > # dladm show-dev > dladm: insufficient privileges > # dladm show-link > dladm: insufficient privileges > > # tail /var/samba/log/log.smbd > [2008/06/13 13:18:08, 0] smbd/server.c:(944) > smbd version 3.0.28a started. > Copyright Andrew Tridgell and the Samba Team 1992-2008 > [2008/06/13 13:18:08, 0] printing/print_cups.c:(69) > Unable to connect to CUPS server localhost:631 - Network is unreachable > [2008/06/13 13:18:08, 0] printing/print_cups.c:(69) > Unable to connect to CUPS server localhost:631 - Network is unreachable > [2008/06/13 13:18:08, 0] lib/util_sock.c:(830) > bind failed on port 445 socket_addr = 10.1.1.147. > Error = Permission denied > > > > 2008/6/13 David Edmondson <dme@sun.com>: >> >> On 13 Jun 2008, at 12:30pm, Piotr Jasiukajtis wrote: >>> >>> I have the samba zone with shared IP, pvm, domU: >>> >>> # uname -srvmpi >>> SunOS 5.11 snv_89 i86pc i386 i86xpv >>> >>> Is there any way to enable samba service in this zone on pvm domU ? >> >> It should be just as with any other machine. (I''ve no idea what that is, as >> I''ve not used samba in some years.) >> >>> [2008/06/13 13:18:08, 0] lib/util_sock.c:(830) >>> bind failed on port 445 socket_addr = 10.1.1.147. >>> Error = Permission denied] >>> >>> >>> Dom0 (sxce90) has only one NIC. >>> >>> # ifconfig -a >>> lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu >>> 8232 index 1 >>> inet 127.0.0.1 netmask ff000000 >>> xnf0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 >>> index 2 >>> inet 10.1.1.147 netmask ffffff00 broadcast 10.1.1.255 >>> # dladm show-dev >>> dladm: insufficient privileges >>> # dladm show-phys >>> dladm: insufficient privileges >> >> This all suggests that you are not root. What''s the output of ''id -a''? >> >> > > > > -- > Regards, > Piotr Jasiukajtis | estibi | SCA OS0072 > http://estseg.blogspot.com >-- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
Piotr Jasiukajtis wrote:> Hello, > > I have the samba zone with shared IP, pvm, domU: > > # uname -srvmpi > SunOS 5.11 snv_89 i86pc i386 i86xpv > > Is there any way to enable samba service in this zone on pvm domU ?Not quite the answer your asking for, but this is how I enable cifs on a zfs filesystem. You can add a second disk and do something like the following... # zpool create tank c0d1 # echo "other password required pam_smb_passwd.so.1 nowarn" >> /etc/pam.conf ; reset passwds for users who can join # passwd <user> # svcadm enable -r smb/server # smbadm join -w <workgroup> # zfs create -o casesensitivity=mixed tank/smb # chown -R<user>:<group> /tank/smb # zfs set sharesmb=on tank/smb # zfs get all tank/smb # sharemgr show -vp connect as smb://<ip addr>/tank_smb
I didn''t read properly - you''re using multiple zones inside a single guest domain. Is that right? If so, that would explain the dladm failures in the non-global zone. It should still be possible for smbd to bind to port 445 though (as long as it''s running as root).
2008/6/13 David Edmondson <dme@sun.com>:> I didn''t read properly - you''re using multiple zones inside a single guest > domain. Is that right?Yes.> If so, that would explain the dladm failures in the non-global zone. It > should still be possible for smbd to bind to port 445 though (as long as > it''s running as root).Indeed.>From non global zone:# id -a uid=0(root) gid=0(root) groups=0(root),1(other),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp),9(nuucp),12(daemon) I guess it''s some kind of BUG. -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
Where did this copy of smbd come from?
2008/6/13 David Edmondson <dme@sun.com>:> Where did this copy of smbd come from?It comes from bare metal S10 and SXCE. It didn''t work, so I added ''interfaces = 10.1.1.147'' and ''bind interfaces only = yes'' and still without effect. It doesn''t work even with default smb.conf-example. -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com