2008/6/13 Robert Thurlow <robert.thurlow@sun.com>:> 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 ? >> >> [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 > > If you truss smbd, I expect that this is failing due to a > missing privilege: > > > # truss -f /usr/sfw/sbin/smbd > ... > 15231: so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, 0x00000000, SOV_DEFAULT) > = 1 > 9 > 15231: setsockopt(19, SOL_SOCKET, SO_REUSEADDR, 0xFFBFE86C, 4, SOV_DEFAULT) > = 0 > 15231: bind(19, 0xFFBFE870, 16, SOV_SOCKBSD) Err#13 EACCES > [sys_smb]Yep, missing privilege: 1117: so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, 0x00000000, SOV_DEFAULT) = 19 1117: setsockopt(19, SOL_SOCKET, SO_REUSEADDR, 0x08046974, 4, SOV_DEFAULT) = 0 1117: bind(19, 0x08046950, 16, SOV_SOCKBSD) Err#13 EACCES [sys_smb] Btw, on my bare metal S10 machines Samba works from non global zones out of the box. SXDE3 also worked without any issues. Was something changed with recent SXCE builds? Thanks -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
Piotr Jasiukajtis wrote:> Btw, on my bare metal S10 machines Samba works from non global zones > out of the box. > SXDE3 also worked without any issues. > Was something changed with recent SXCE builds?Yes - the native CIFS server was integrated. Rob T
From "Heads Up: Flag Day (CIFS Service)" (build 77, Oct 25, 2007): > 2. Samba and the NetBIOS and SMB ports > > The NetBIOS and SMB ports are now protected with a new privilege: sys_smb, > which is similar to sys_nfs. The sys_smb privilege is required to bind > to ports 137, 138, 139 and/or 445. Dependent on how Samba is launched, > a change may be required to bind to these ports. See the smb/server > manifest for details of how the CIFS service is started. > > Also, not that use of Samba and the CIFS service is mutually exclusive > on a system, since both attempt to bind to the same ports. Alan -- Robert Thurlow wrote:> Piotr Jasiukajtis wrote: > >> Btw, on my bare metal S10 machines Samba works from non global zones >> out of the box. >> SXDE3 also worked without any issues. >> Was something changed with recent SXCE builds? > > Yes - the native CIFS server was integrated. > > Rob T > _______________________________________________ > smbfs-discuss mailing list > smbfs-discuss@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/smbfs-discuss