Solved

How to install samba server on solaris 10 ?

Posted on 2009-07-03
22
7,460 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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
 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Check if a filw is immutable for a certain amount of time 6 61
Why isn't object file created? 6 58
VMware Workstation 12 Player 16 74
AWS Central Authentication 1 61
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

770 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