LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2005, 04:42 PM   #1
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
rc.samba useless?


Why is this script included? Where does it get called from? rc.inet2 fires up samba if you have a share listed in fstab so rc.samba isn't making much sense to me. I deleted it and my share is getting mounted just fine via rc.inet2...

Any thoughts?
 
Old 04-24-2005, 05:07 PM   #2
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Rep: Reputation: 30
rc.samba is for starting the samba daemon. You're just mounting shares. There is a difference.
 
Old 04-24-2005, 05:09 PM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Isn't rc.samba for the smbd and nmbd services (samba server) and rc.inet2 for mounting remote smb shares?
 
Old 04-24-2005, 05:10 PM   #4
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
I type too damn slow...

 
Old 04-24-2005, 06:05 PM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
O.k... I'm new at using samba. Just started today actually. How can you mount a samba share if the daemon isn't running, which leads me to ask, what is the samba daemon used for then? I'm a little confused... I thought daemons had to be activated in order for a service to be active.... How is samba working then without running the daemon... In other words,

Quote:
There is a difference.
which is?????

Last edited by jong357; 04-24-2005 at 06:08 PM.
 
Old 04-24-2005, 06:34 PM   #6
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
Where does it get called from?
it does not get called--- you make it executable yourself,
did you take the time to read rc.samba
Code:
#!/bin/sh
#
# /etc/rc.d/rc.samba
#
# Start/stop/restart the Samba SMB file/print server.
#
# To make Samba start automatically at boot, make this
# file executable:  chmod 755 /etc/rc.d/rc.samba
#

samba_start() {
  if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd -a -r /etc/samba/smb.conf ]; then
    echo "Starting Samba..."
    /usr/sbin/smbd -D
    /usr/sbin/nmbd -D
  fi
}

samba_stop() {
  killall smbd nmbd
}

samba_restart() {
  samba_stop
  sleep 2
  samba_start
}

case "$1" in
'start')
  samba_start
  ;;
'stop')
  samba_stop
  ;;
'restart')
  samba_restart
  ;;
*)
  # Default is "start", for backwards compatibility with previous
  # Slackware versions.  This may change to a 'usage' error someday.
  samba_start
esac
 
Old 04-24-2005, 06:39 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Quote:
Originally posted by jong357
Quote:
O.k... I'm new at using samba. Just started today actually. How can you mount a samba share if the daemon isn't running,
Using a samba client, in most cases it's smbmount which mounts a shared directory where you want.
Quote:
which leads me to ask, what is the samba daemon used for then?
It's used to allow you to share something of your machine.

Quote:
I'm a little confused... I thought daemons had to be activated in order for a service to be active.... How is samba working then without running the daemon... In other words,
which is?????
Daemons are as you said services, and the clients access those services

Internet is a very good example, linuxquestions.org is running trough a web daemon (server) and you access it with a web browser (client). You don't need a web server to see this page
 
Old 04-25-2005, 07:10 PM   #8
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
it does not get called--- you make it executable yourself,
did you take the time to read rc.samba
This is just silly.

A) It does not get called? /etc/rc.d/rc.M seems to say otherwise.

B) You make it executable yourself. Well, that is true that if you want to execute the script, the script needs to be executable. You seem to be implying that simply making a script in /etc/rc.d executable will cause it to be executed. This is not true. The executable script must still be called from somewhere.

C) Did he take the time to read the script? It seems irrelevant. The script itself makes no indication of where the script is being called from.

gbonvehi hits the nail on the head. It is the same as not needing Apache running in order to browse the web.
 
Old 04-30-2005, 05:53 PM   #9
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Thanks Shilo... If I was going to post, I was going to rip dude a new asshole. Why do people bother posting if

a) They don't know enough to even give advice on the subject at hand

and

b) insist on being a prick in the process....

I still don't know why one would want to run a Samba server and even what it's used for. Quite frankly I realy couldn't care less at this point. I can read/write to my FAT32 partition and thats all I care about.

gbonvehi, thank you for being helpfull and taking the time to explain.
Shilo, thank you for interjecting and keeping me from being banned with my next reply
freakyg, you can just piss off...
 
Old 04-30-2005, 06:09 PM   #10
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
if you want to run a windows file or print server on your linux box, you run samba.

I'm not gonna blame what's his face for being a prick though.. nothing in that post made any sense and I can only assume that freakyg was on some scary narcotic type thing.

Last edited by DaWallace; 04-30-2005 at 06:11 PM.
 
Old 04-30-2005, 06:34 PM   #11
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
I still don't know why one would want to run a Samba server and even what it's used for.
Quote:
if you want to run a windows file or print server on your linux box, you run samba.
THis is right. If that doesn't make sense, maybe this will. You can browse Windows shares without a Samba server. If you want to share the other way, i.e. you want to share stuff on your Linux box with Windows boxes, you need to run a Samba server. For files, you can always just set up an FTP, HTTP, or SSH server, but for printers I am not aware of any way to share with Windows boxes without Samba.

It's the same with many things in UNIX. Programs are built on a server/client model. You don't need to run a server to be able to use a client. FTP is a good example. You can use an FTP client without an FTP server of your own. You can also run an FTP server if you want to share files yourself.
 
Old 04-30-2005, 06:55 PM   #12
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
ftp isn't the best example.. unless you use passive ftp, the client actually does act in some ways as a server. but it's the only service I know of that does that.. and for all practical purposes, it is a good example.
 
Old 04-30-2005, 11:28 PM   #13
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Kay.. Making sense. I was wondering how I would browse my linux only laptop in windows. I would need to run the daemons that samba comes with and do some additional setup and reading no doubt. I'm still not sure how running a samba server is going to make windows read a reiserfs partition. Samba must work around that somehow and present a linux partition as something windows can understand? I have to read up on it. I've hardly researched anything up to this point. Just installed it, edited the workgroup in the samba.conf and fiddled with my fstab until it worked... Got lucky I guess....

This is all for my wireless laptop. My desktop dual boots xp/slack. Often times I leave the desktop in windows for playing games. Thats why I decided to get samba running. So I could atleast transfer files over without having to boot the desktop into slack. I would like to use my printer connected to the desktop as well via the laptop so it looks as if I'll try and take it one step further and look into it... I understand it a little better now and that was the reason for this post.... Thanks guys....
 
Old 05-01-2005, 03:38 PM   #14
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
I'm still not sure how running a samba server is going to make windows read a reiserfs partition. Samba must work around that somehow and present a linux partition as something windows can understand?
DaWallace is right about FTP not being a perfect example. It does have some merit, though. Think about this. From Windows you can browse FTP directories. The filesystem and OS of the FTP server doesn't matter. It's the same with SAMBA. Windows will see a Windows share on the Linux box after you get it all set up. Windows doesn't care about the OS or the filesystem. It just sees a Windows share.

All you need to do is edit /etc/samba/smb.conf and add users and passwords. That's the part that gave me the most trouble when I started using SAMBA. The system user/passwords don't apply to SAMBA. What I do in the office is set up the same username/password combinations in SAMBA as I have on the Windows machines.

Quote:
My desktop dual boots xp/slack.
Quote:
I would like to use my printer connected to the desktop as well via the laptop
You may want to set up two printers on your laptop, one for when the desktop is booted to Windows and another for when it is booted to Slackware. Not sure if it's needed, but I think it might be.
 
Old 05-01-2005, 08:49 PM   #15
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Interesting.... Thanks for clarifying. Thats not a bad idea with the printer. That poor desktop hardly ever sees linux anymore but it would still be nice to set up the laptop/printer side. I'll work on it this week. Thanks again...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Useless divorce3 Fedora 4 07-10-2005 03:40 AM
probably useless Deno521 Linux - General 7 09-28-2004 07:20 PM
Is kdevelop REALLY this useless? elvee Programming 13 09-04-2004 03:38 AM
locate useless zaman Linux - Software 3 07-09-2003 02:46 PM
Please help me I am useless! linux_newguy Linux - Newbie 7 02-26-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration