?
Solved

How to install samba server on solaris 10 ?

Posted on 2009-07-03
22
Medium Priority
?
7,705 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

800 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