Find the answer to your Linux question:
Results 1 to 5 of 5
I'm up to chapter 1.3 on the Fileserver with Samba and Printserver with CUPS Howto (I really like this document, by the way. I am probably just doing something wrong ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Location
    Dallas, Texas
    Posts
    95

    Problems setting up samba folllowing the howto.


    I'm up to chapter 1.3 on the Fileserver with Samba and Printserver with CUPS Howto (I really like this document, by the way. I am probably just doing something wrong here). At this point, I'm running into results that don't look like what I was expecting from the howto. Here is what I'm getting:

    When I run testparam, I get the following results:
    linux:/home/samba # whoami
    root
    linux:/home/samba # testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[public]"
    Processing section "[printers]"
    WARNING: The "printer admin" option is deprecated
    Processing section "[HPPSC750]"
    WARNING: The "printer admin" option is deprecated
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions

    [global]
    workgroup = TUX-NET
    netbios name = AMD_FILESERVER
    server string = Samba Server
    interfaces = lo, eth0
    bind interfaces only = Yes
    hosts equiv = /etc/hosts
    log file = /var/log/samba/%m.log
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    hostname lookups = Yes
    printcap name = cups
    wins support = Yes
    guest ok = Yes
    hosts allow = 192.168.0.0/255.255.255.0, localhost
    hosts deny = All

    [public]
    comment = Shared folders
    path = /home/samba/public
    read only = No
    create mask = 0766

    [printers]
    comment = All Printers
    path = /var/spool/samba
    printer admin = root
    printable = Yes
    browseable = No

    [HPPSC750]
    comment = HP PSC 750
    path = /var/spool/samba
    printer admin = root
    printable = Yes
    linux:/home/samba #
    My main question here is, do I need to worry about the two warnings that the printer admin option is deprecated, or does the line "Loaded services file OK." mean everythign is really fine?

    Next, I used the two commands to see if the samba service is running:
    linux:/home/samba # ps -e | grep smbd
    linux:/home/samba # ps -e | grep nmbd
    linux:/home/samba #
    I would have expected some sort of response to these two lines. Or does this indicate everything is fine?

    Next, I ran the code to start samba:
    linux:/home/samba # /etc/init.d/samba start
    bash: /etc/init.d/samba: No such file or directory
    linux:/home/samba #
    I double checked YAST (running opensuse 10.0) and it shows I have samba version 3.0.20-4 installed of samba (samba server in the description), and 3.0.20-4 version of samba-client installed. When I looked in the /etc/init.d folder, the closest files were "smb" and "smbfs". Guessing that maybe smb is the same on my machine as samba, I did the following:
    linux:/etc/init.d # /etc/init.d/smb start
    Starting Samba SMB daemon done
    linux:/etc/init.d #
    This makes me think smb is the same as samba on my setup. Is this correct?

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    If it says the printer admin is depreciated, then it basicially will ignore it. However, I don't see this when I run testparm on my server (I forgot which version I am using, it is the latest version available in Gentoo's portage).

    Now in your case, try doing
    Code:
    ps -e | grep 'smb'
    And yes, smb is samba on your system.
    Life is complex, it has a real part and an imaginary part.

  3. #3
    Just Joined!
    Join Date
    May 2005
    Location
    Dallas, Texas
    Posts
    95
    Thanks so much for both your tutorial and the help in your post! I've been trying to understand how to get samba running for over a year now. I feel like I'm close, but just missing some fine detail.

    I ran the code you suggested, but still nothing happens. Is that what is expected? I tried it both with and without single quotes around smb. Here is what it looked like. I included the whoami so there would be clear how I was logged in when I ran the command, in case that makes a difference:
    linux:/etc/init.d # whoami
    root
    linux:/etc/init.d # ps -e | grep 'smb'
    linux:/etc/init.d # ps -e | grep smb
    linux:/etc/init.d #
    Edit: I tried again, this time starting smb first. Here is what I got this time:
    linux:/home/redbeard # /etc/init.d/smb start
    Starting Samba SMB daemon done
    linux:/home/redbeard # ps -e | grep 'smb'
    6820 ? 00:00:00 smbd
    6821 ? 00:00:00 smbd
    linux:/home/redbeard #

  4. #4
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    the 2nd entry is what should be returned when you execute the ps command.

    Now, does a windows computer see the shares? Is there any other problem?
    Life is complex, it has a real part and an imaginary part.

  5. #5
    Just Joined!
    Join Date
    May 2005
    Location
    Dallas, Texas
    Posts
    95
    Quote Originally Posted by AlexK
    the 2nd entry is what should be returned when you execute the ps command.

    Now, does a windows computer see the shares? Is there any other problem?
    I wasn't able to get it working from my windows machine over the weekend, but I'm guessing it was something in how I had Windows set up. I'm having hardware problems with that box now (getting too hot, needs a fan) so I can't do any more testing on the client side at the moment. I ordered a new part last night so it should be here in time to work on samba again over the weekend. I'll post back here with what I find as soon as I get the client box up and running.

Posting Permissions

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