Sunday, July 1, 2012

Configuring samba on Solaris10

I want to configure samba on my solaris 10 server which is in workgroup. My requirement is to access the samba server froma windows server which is on a domain network. can some one pls help me. 




Hi, pls search on how to configure samba on ittoolbox. U wl get 
step-by-step inst'n


How to configure samba 
First we should install the samba package. 
Second we create a user or group(assign samba users to this group) . 
Third we go to /etc/sfw/ path and edit smb.conf edit required fields and fill one of parts in this file for shareing 

Then in /usr/sfw/bin run ./smbpasswd –a <username> 
With assigning password to this user .this will become a samba user. 

Then enable samba services. 
svcadm enable samba 

If we want to have web admin console 
We add in /etc/services 
Swat 901/tcp swat #this is for swat 
Then restart samba services 
Here is all I did. I wanted to present two internal disk drives, /disk1 and /disk2 mount points, on the Sun server, V440, to the Windows environment. It may not be ideal but it does work. 

******************************** 

Solaris 10 comes pre-loaded with SAMBA so there is no need to obtain any packages. 

Create /etc/sfw/smb.conf with the following information. You can copy /etc/sfw/smb.conf-example to /etc/sfw/smb.conf if you need more features. 


[global] 
workgroup = UnixTeam 
netbios name = t-corp-unxap-0a 
server string = t-corp-unxap-0a 
security = user 
log file = /var/adm/samba/log.%m 
guest account = nobody 

[Disk1] 
comment = Share directory 
path = /disk1 
available = yes 
browsable = yes 
public = yes 
writable = yes 
write list = asmith bsmith cjones 

[Disk2] 
comment = Share directory 
path = /disk2 
available = yes 
browsable = yes 
public = yes 
writable = yes 
write list = asmith bsmith cjones 

Run /usr/sfw/bin/testparm to check for errors 

Append the following to /etc/inetd.conf This is more for SWAT than anything else. 

netbios-ssn stream tcp nowait root /usr/sfw/sbin/smbd smbd 
netbios-ns dgram udp wait root /usr/sfw/sbin/smdb nmdb 

Append the following to /etc/services This is for SWAT only. 

# SAMBA SWAT 
swat 901/tcp #samba web admin tool 
swat 901/udp #samba SWAT 

Run inetconv -i /etc/inetd.conf to create the service 

Restart the processes 

pkill -HUP smbd 
pkill -HUP nmbd 
pkill -HUP inetd 

Create the /disk1 and /disk2 mount mounts and directories 

Set the permissions 

chmod 777 /disk1 
chmod 777 /disk2 
chmod +t /disk1 
chmod +t /disk2 
chown sys /disk1 
chgrp sys /disk2 

Make sure you have UNIX users created who will need access to the SAMBA share directories. 

Create SAMBA users matching the UNIX users who need access 

/usr/sfw/bin/smbpasswd -a <username> 

Start SAMBA 

/etc/init.d/samba start 

Map your PC to the SAMBA location 

\\t-corp-unxap-0a\disk1 
\\t-corp-unxap-0a\disk2

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM