Results 1 to 10 of 10

Thread: (Hopefully) Simple question regarding samba

  1. #1

    (Hopefully) Simple question regarding samba

    samba-2.2.1a-4 on rh 7.1.
    The following configuration works flawlesslyto share the printer and allow guest access without prompting for password (from smb.conf)
    workgroup=plt
    server string = Linux server
    local master = no
    guest account = pcguest
    map to guest = bad user

    # printer share
    [Lnx-prt]
    comment = ePDF printer
    path = /var/spool/ePDF
    guest ok = yes
    guest only = yes
    printable = yes
    printer driver = Apple LColor LaserWriter 12/600
    print command = /usr/local/bin/ePDF.sh -u %U %s 2>> log

    As I mentioned before this works with no problem.
    BUT:
    EXACTLY the same configuration running on rh 7.3 samba-2.2.3a-6
    asks me for password when I click in the network neighborhood on the linux computer icon.

    P.S. nbtstat -A on wondows boxes and nmblookup -A on linux box itself work fine.

    Any ideas?
    Any changes in samba version?

    Thanks.

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:(Hopefully) Simple question regarding samba

    I dont know. I have yet to figure out the no password thing. I would love that.

  3. #3

    Re:(Hopefully) Simple question regarding samba

    I figured that out.....map to guest = bad user was in wrong section....I had to move it, but it was working fine with previous version of samba.
    Strange.

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:(Hopefully) Simple question regarding samba

    Since I cant find my Samba book, where does it go?

  5. #5

    Re:(Hopefully) Simple question regarding samba

    there is a line in smb.conf that has :
    ;guest account = pcguest
    You should uncomment this line (in the case you use guest account pcguest)
    Right beneath that line you should put:
    map to guest = bad user

    The last line was in my case somwhere in the middle of smb.conf and it didn't work. The moment I moved it right after ;guest account = pcguest then it starts working.

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:(Hopefully) Simple question regarding samba

    So if I make a guestacct user, and map to guest as you did, it will give all guest access to guestacct user?

  7. #7

    Re:(Hopefully) Simple question regarding samba

    My idea here was like that (and it works)
    Create pcguest user , then when you specify the line'map to guest = bad user" you actually tell the following :
    Each user that connects to the share you configured will be mapped to guest account if it has bad (unknown) username, which effecively maps all users to pcguest..

  8. #8
    Senior Member
    Join Date
    May 2001
    Posts
    411

    Re:(Hopefully) Simple question regarding samba

    Ah yes, one of the neat things about Linux (and all the software associated with it) is that you learn something new just about every day.

  9. #9
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:(Hopefully) Simple question regarding samba

    Right!

    and thanks elovkoff -- it worked fine!

  10. #10

    Re:(Hopefully) Simple question regarding samba

    [quote author=Schotty link=board=4;threadid=5299;start=0#52416 date=1035329195]
    Right!

    and thanks elovkoff -- it worked fine!
    [/quote]

    Cool,glad to hear that :-)

Similar Threads

  1. Samba - Simple questions
    By markwaugh in forum Linux - General Topics
    Replies: 2
    Last Post: 12-17-2004, 01:47 PM
  2. Simple Question
    By CP in forum General Chat
    Replies: 47
    Last Post: 09-16-2002, 10:09 PM
  3. Simple Question
    By Baldy in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 07-26-2002, 03:39 PM
  4. simple WindowMaker question
    By in forum Linux - Software, Applications & Programming
    Replies: 25
    Last Post: 05-01-2002, 03:37 AM

Bookmarks

Posting Permissions

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