Find the answer to your Linux question:
Results 1 to 2 of 2
I have installed SUSE 10.0 I am connected as root. In console mode, when i type the following: >cd /etc/init.d >samba restart i get the following message: bash: samba: command ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Location
    Greece, Athens
    Posts
    214

    can't restart samba manually


    I have installed SUSE 10.0
    I am connected as root. In console mode, when i type the following:
    >cd /etc/init.d
    >samba restart
    i get the following message:
    bash: samba: command not found

    Also, when i try to access a pc with windows i get the following
    error in konqueror:
    smb protocol not supported.

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,915
    There are two issues here.

    Firstly you cant just do:

    Code:
    cd /etc/init.d
    samba restart
    because the current path (.) is not included in the 'PATH' variable by default. To solve this, either add '.:' to the start of your path (unwise, and not recommended) or specify the app by leading with the dot or full path, i.e.:

    Code:
    cd /etc/init.d
    ./samba restart
    OR

    Code:
    /etc/init.d/samba restart
    The second issue isn't connected to the first; this one is to do with samba client support, which you dont seem to have installed. Using your package manger, find a package called "samba-client" or "smb-client" and install it; it should cure all these woes that you're suffering with konqueror.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

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