Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: SAMBA after 9.04 doesnt work

  1. #1
    Join Date
    Jan 2008
    Beans
    113

    SAMBA after 9.04 doesnt work

    well by the title youc an see after the upgrade from 8.04 to 9.04 my samba no longer works but......

    the ubuntu can see the xp machine it just cant mount the shared drives saying "can not contact server to find the share list"

    my xp machine can still see and access the linux shared drive but not vice versa.

    i have gone in to my samba setting in webmin and tried to make adjustments but no luck.

    my next step is to remove samba and start all over. any help appreciated before this though thanks.

  2. #2
    Join Date
    Jan 2007
    Beans
    5,549

    Re: SAMBA after 9.04 doesnt work

    have you tried accessing via ip? like smb://x.x.x.x ?

  3. #3
    Join Date
    Jan 2008
    Beans
    113

    Re: SAMBA after 9.04 doesnt work

    yes that didnt work, but i can ping the other machine fine

    update:

    i must have tried that before i made changes in my xp and smaba machine cause now i can apparently ip in only
    Last edited by evilbuntu; July 21st, 2009 at 07:40 PM.

  4. #4
    Join Date
    Jun 2007
    Location
    Oz
    Beans
    501
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: SAMBA after 9.04 doesnt work

    I suggest three diagnostics:

    1. Can you post here the contents of your file smb.conf but in abbreviated form, generated this way: Open a terminal and run the command:
      Code:
      testparm -s
      post back here the results.
    2. Also check that the line in smb.conf that names the workgroup is the same as the name for the workgroup on xp (see My Computer --> Right click --> Computer Name --> workgroup).
    3. probably not a problem, but just to be sure, check the new firewall ufw status with this command:
      Code:
      sudo ufw status

  5. #5
    Join Date
    Jan 2008
    Beans
    113

    Re: SAMBA after 9.04 doesnt work

    this is the file. the only thing i did was change my work group and username here. thanks guys

    Load smb config files from /etc/samba/smb.conf
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[stuff]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    [global]
    workgroup = "work group is correct"
    map to guest = Bad User
    obey pam restrictions = Yes
    passdb backend = tdbsam
    guest account = "me"
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    dns proxy = No
    wins support = Yes
    default service = global
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d
    path = /media/SimpleDrive/ProFTP
    valid users = media
    write list = media
    read only = No
    guest ok = Yes

    [printers]
    comment = All Printers
    path = /var/spool/samba
    read only = Yes
    create mask = 0700
    guest ok = No
    printable = Yes
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
    read only = Yes
    guest ok = No

    [stuff]

  6. #6
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: SAMBA after 9.04 doesnt work

    I usually expect to see a line in the global config like:
    Code:
    security=share
    OR
    security=user
    if you want unauthenticated, then I think you map bad user to guest and allow guest on the shares. but you still need the "security =" setting.

    also most of the time, before a user can login, i need to run:
    Code:
    sudo smbpasswd -a <username>
    on the server and set the samba password for the user there.

  7. #7
    Join Date
    Jan 2008
    Beans
    113

    Re: SAMBA after 9.04 doesnt work

    Quote Originally Posted by doas777 View Post
    I usually expect to see a line in the global config like:
    Code:
    security=share
    OR
    security=user
    if you want unauthenticated, then I think you map bad user to guest and allow guest on the shares. but you still need the "security =" setting.

    also most of the time, before a user can login, i need to run:
    Code:
    sudo smbpasswd -a <username>
    on the server and set the samba password for the user there.
    it seems you alter the files manually where i use webmin.

    I am not that in depth that i really know these files yet and how to manually change them.
    I do like to have it so there is no login needed and everyone just goes in and out precariously lol.
    It has worked fine until the update though. Though i may have found out that on my xp machine i am running avg anti spyware and background watcher and that may be stopping my linux machine from entering. i had a similar problem on this same machine before i switched to AVG and was running spyware terminator.

    to change the file though do i basically just change my name in guest to "bad user"?

    thanks

  8. #8
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: SAMBA after 9.04 doesnt work

    Quote Originally Posted by evilbuntu View Post
    it seems you alter the files manually where i use webmin.

    I am not that in depth that i really know these files yet and how to manually change them.
    I do like to have it so there is no login needed and everyone just goes in and out precariously lol.
    It has worked fine until the update though. Though i may have found out that on my xp machine i am running avg anti spyware and background watcher and that may be stopping my linux machine from entering. i had a similar problem on this same machine before i switched to AVG and was running spyware terminator.

    to change the file though do i basically just change my name in guest to "bad user"?

    thanks
    well first, I've never done a sucessful distro upgrade, so a good starting point you may want to confirm that samba is installed
    Code:
    sudo apt-get install samba --reinstall
    if you get an error, remove the '--reinstall'.

    failing that, try to add "security = user" and restart samba with
    Code:
    sudo /etc/init.d/samba restart
    to see if that helps. I'm prolly not qualified to assist you with unauthenticated access (I know the theory but have never tried), but hopefully someone will. I am led to believe that it is important to have the security mode defined, but it may default if the value is not present.

    if you look in \etc\samba are there any backups of smb.conf? the solution may be as simple as restoring an older config.

  9. #9
    Join Date
    May 2008
    Location
    Netherlands
    Beans
    505
    Distro
    Xubuntu 9.04 Jaunty Jackalope

    Re: SAMBA after 9.04 doesnt work

    to edit the file manually open a terminal and type:
    sudo gedit /etc/samba/smb.conf

    There are a lot of comments in the file, starting with #.
    All lines starting with # or ; are regarded comments and are ignored.

    Please read the beginning of the file before starting to make any changes. Also create a comment when you make changes, so you know what you have done later.
    # june 16th 2009 17:10, turned of option ....

    when security = user is on, you will need a linux user account to get access.
    guest ok=yes will allow guest (unauthorised) access.
    It would be best to define this per share.
    You can find your shares on the bottom of the file.

  10. #10
    Join Date
    Jan 2008
    Beans
    113

    Re: SAMBA after 9.04 doesnt work

    Quote Originally Posted by martinbaselier View Post
    to edit the file manually open a terminal and type:
    sudo gedit /etc/samba/smb.conf

    There are a lot of comments in the file, starting with #.
    All lines starting with # or ; are regarded comments and are ignored.

    Please read the beginning of the file before starting to make any changes. Also create a comment when you make changes, so you know what you have done later.
    # june 16th 2009 17:10, turned of option ....

    when security = user is on, you will need a linux user account to get access.
    guest ok=yes will allow guest (unauthorised) access.
    It would be best to define this per share.
    You can find your shares on the bottom of the file.
    well i looked at the file and it appears that security does = yes and in teh shares everything that doesnt have to do with printing is set guest ok = yes.

    as for share, should this file have the acceptable user list anywhere? mine just basically has the info for my linux box only.
    thanks, learning alot

Page 1 of 2 12 LastLast

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
  •