How to install samba server (network file sharing on UNIX for windows)

How to install samba server (network filestore on UNIX for windows)
1. Install samba package (from CD companion solaris)
2. configure smb.conf , i.e :

# Global parameters
# aghiel p 19 April 2005

workgroup = sunwrkgrp
server string = sunb-aghiel
security = Share
hosts allow = localhost, batman
hosts deny = All

[root]
path = /
comment = Solaris root
guest ok = Yes
read only = Yes
[share]
path = /share
comment = Solaris share
guest ok = Yes
read only = No

[software]
path = /export/home/software
guest ok = Yes
guest account = forever
comment = software
read only = No
create mask = 0755


3. start samba :
/usr/sfw/sbin/smbd -D
/usr/sfw/sbin/nmbd -D
or
running script below (/etc/init.d/samba) :
#!/sbin/sh
#
# Copyright (c) 2001 by Sun Microsystems, Inc
# All rights reserved.
#
#ident "@(#)samba 1.1 01/09/24 SMI"

case "$1" in
start)
[ -f /etc/sfw/smb.conf ] || exit 0

/usr/sfw/sbin/smbd -D
/usr/sfw/sbin/nmbd -D
;;
stop)
pkill smbd
pkill nmbd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0

4. Mount filesharing from windows prompt :

c:\>net use z: \\batman\share

Comments

Popular posts from this blog

OSS RC : learning by doing (new beginning)

Link sudoers in linux (centos7) with Active Directory group

RSYNC via SSH on solaris 10