Solved

How to install samba server on solaris 10 ?

Posted on 2009-07-03
22
7,429 Views
Last Modified: 2013-12-27
Hi,

I am newbee in UNIX/solaris  i cant install samba on solaris see wht steps i tried in cdrom

# pkgadd -d . SUNWsmbar SUNWsmbau SUNWmbac SUNWsmbas

but it could only install SUNWsmbar and SUNWsmbau

for other packages it says package not found  i installed SUNWsmbaS also but i  dont know what is use of this?? but still i cant find ./samba service script in /etc/inet.d/

actually iam following this tutorial

http://it.toolbox.com/wiki/index.php/How_to_configure_SAMBA_in_Solaris




pls help me out guys

Ty  alot
0
Comment
Question by:dontdig
  • 12
  • 10
22 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 24774834
0
 
LVL 1

Author Comment

by:dontdig
ID: 24775981
Ty omarfarid for links

but i dont have sparc pc its on vmware workstation with C2DUO processor will it work?
actually iam studying on solaris...though iam downloading it...
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24776263
0
 
LVL 1

Author Comment

by:dontdig
ID: 24784468
sorry to say but i have downloaded it was corrupted  package ..iam trying to  download it  again
0
 
LVL 1

Author Comment

by:dontdig
ID: 24784892
now i have extracted the above package but prob is i dont know how to instll it its  

 samba-3.2.4-sol10-x86-local

i dont know how to run  it is an script ?
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24785552
after unzipping it

gunzip samba-3.2.4-sol10-x86-local.gz

then run as root

pkgadd -d samba-3.2.4-sol10-x86-local
0
 
LVL 1

Author Comment

by:dontdig
ID: 24785840
thanks its has been installed now but how to start this service in /etc/init.d there is no start-up script for this like we have in linux
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24786441
0
 
LVL 1

Author Comment

by:dontdig
ID: 24787787
now  my samba server is up and running i can share folder .....but still funny thing is how can i start/restart  the service?? there is no /etc/init.d/samba or /etc/init.d/./samba to stop or to restart this service  

suppose i have made some changes in smb.conf i want to restart the service pls tel me about it

Regards++
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24791249
please look into the provided links on how to stop / start / restart samba
0
 
LVL 1

Author Comment

by:dontdig
ID: 24792111
yes i looked at it it says the same /etc/init.d/samba start/stop ,,but the script is "NOT" there to start and stop the service.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 40

Expert Comment

by:omarfarid
ID: 24792232
in the link below (already given)

http://forums.sun.com/thread.jspa?threadID=5106458

Follow the steps from

Sep 18, 2006 11:23 PM  (reply 4 of 20)  (In reply to  #3  )
0
 
LVL 1

Author Comment

by:dontdig
ID: 24792498
HeLL!!!!!!!!!!!!  

LOL man the procedure is very long do we need to follow the same procedure to just start and stop an service in solaris???????????// nothing inbuilt??


if answer is yes i"ll  have to certainly leave solaris study..... :-(
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24792721
well, you could take the commands and run them manually and forget about automating it!
0
 
LVL 1

Author Comment

by:dontdig
ID: 24793623
"well, you could take the commands and run them manually and forget about automating it!"

can u pls explain urs comment practically
please tell me the procedure u do when u use solaris for an service to start like samba...please be practical while answering it will be easy to understand


Ty++
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24793732
ok, if not mistaken you can do

- to start

/etc/rc3.d/S90samba start

OR

 /usr/sfw/sbin/smbd -D
 /usr/sfw/sbin/nmbd -D

- to stop

/etc/rc3.d/S90samba stop

OR

pkill smbd
pkill nmbd
0
 
LVL 1

Author Comment

by:dontdig
ID: 24794087
Ty omar

/etc/rc3.d/S90samba doesnt exist i dont know y but  /usr/sfw/sbin/smbd -D did the job and then pkill to stop

but y /etc/rc3.d/S90samba is not here?
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 225 total points
ID: 24794226
I am not sure why ! I have it on my system and you can simply add it to your system. You can simply create with runing

echo '#!/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' > /etc/rc3.d/S90samba

chown root:sys /etc/rc3.d/S90samba
chmod 744 /etc/rc3.d/S90samba
0
 
LVL 1

Author Closing Comment

by:dontdig
ID: 31599624
Thanks Omar :-)
0
 
LVL 1

Author Comment

by:dontdig
ID: 24796807
just one more thing bit out of topic

may i know that where people are implementing solaris i mean about objective like for an web server ?
I want to know  actual usage of an solaris O.S in our practical life see there are many more easier to handle server are available like cent 0.S



Thanks :-)
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24796874
solaris is very popular OS and widely used as web server, mail server, directory / LDAP server, etc.

Many free and commercial S/W packages are developed and available on it.

solaris runs on sparc and x86 platforms and recently Sun released it as open source ( Open Solaris)
0
 
LVL 1

Author Comment

by:dontdig
ID: 24802700
thanks for information
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now