Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    newbie needs help :)

    i want to stop and start samba with
    smbd start/stop
    how do i do this


  2. #2
    Linux User
    Join Date
    Jul 2002
    Daytona Beach, FL
    if you are root type

    service smbd stop/start/restart/status

    if you are not root

    sudo /etc/init.d/smbd stop/start/restart/status

    (you need root permission to execute the command, but if you use sudo service will not be in your path)

    Quiet brain, or I\'ll stab you with a Q-tip.

  3. #3
    yes i'm root

    but that doesn't work because i installed it from the srcfiles

    zo i need to start smbd -D and nmbd -D manually

    now did i write a script that exec tis commands but
    if i what to stop them i need to do ps -aux then find
    the pid en kill them

    zo i want to write a script that do this for me

  4. $spacer_open
  5. #4
    Linux Enthusiast
    Join Date
    Jun 2002
    San Antonio
    if you use RedHat there is a "loadproc" function that is in /etc/sysconfig/functions or something like that, that puts a and file in /var/run/ that contains nothing but the pid of the currently running smbd and nmbd processes. That way you can: kill `cat /var/run/`
    I respectfully decline the invitation to join your delusion.

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    I've put up my /etc/rc.d/init.d/smb in my ftp dir, you can download it from It is very possible that it only works in RedHat, though.

  7. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts