Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st November 2010, 22:45
withanhdammit withanhdammit is offline
Junior Member
 
Join Date: Jun 2009
Location: Pacific Northwest, USA
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Send a message via Skype™ to withanhdammit
Default Allow anonymous access to SAMBA

I followed the HowTo located at http://www.howtoforge.com/debian-len...tdbsam-backend.

I am using a DOS boot disk loaded over PXE to boot a system, connect to a share, launch GHOST and unpack the GHOST file.

But my DOS machine isn't connecting to the SAMBA share, it tells me Error 5: Access has been denied.

My smb.conf contains:
Code:
[global]
        workgroup = PMI
        server string = %h server
        obey pam restrictions = no
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword$
        unix password sync = Yes
        syslog = 0
        security = group
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        wins server = 10.0.0.1
        wins server = 10.0.0.2
        panic action = /usr/share/samba/panic-action %d
        encrypt passwords = no

[ghostshare]
        comment = Ghost share
        path = /usr/share/ghostshare
        valid users = ghost
        force group = users
        create mask = 0555
        directory mask = 0555
        writeable = yes
I've been googling this for a couple of days and can't seem to hit on what the issue is.

Thanks to everyone for taking a look at my problem and for any potential suggestions.

h
Reply With Quote
Sponsored Links
  #2  
Old 1st November 2010, 22:52
withanhdammit withanhdammit is offline
Junior Member
 
Join Date: Jun 2009
Location: Pacific Northwest, USA
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Send a message via Skype™ to withanhdammit
Default

The /var/log/samba/log.ghost shows this:
Code:
[2010/11/01 14:49:18,  0] auth/pampass.c:smb_pam_passcheck(820)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User ghost !
[2010/11/01 14:49:22,  0] auth/pampass.c:smb_pam_passcheck(820)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User ghost !
[2010/11/01 14:49:24,  0] auth/pampass.c:smb_pam_passcheck(820)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User ghost !
ghost is a valid user on my system
Code:
vanc-pxe01:/var/log/samba# cat /etc/passwd | grep ghost
ghost:x:1001:1002::/home/ghost:/bin/sh

Last edited by withanhdammit; 1st November 2010 at 23:05.
Reply With Quote
  #3  
Old 1st November 2010, 23:04
withanhdammit withanhdammit is offline
Junior Member
 
Join Date: Jun 2009
Location: Pacific Northwest, USA
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Send a message via Skype™ to withanhdammit
Default

And does belong to the group 'users'
Code:
vanc-pxe01:/var/log/samba# groups ghost
ghost users
Reply With Quote
  #4  
Old 2nd November 2010, 18:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by withanhdammit View Post
I am using a DOS boot disk loaded over PXE to boot a system, connect to a share, launch GHOST and unpack the GHOST file.
Does the DOS disk try to connect to the SAMBA server anonymously, or did you configure a username/password somewhere?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 2nd November 2010, 19:54
withanhdammit withanhdammit is offline
Junior Member
 
Join Date: Jun 2009
Location: Pacific Northwest, USA
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Send a message via Skype™ to withanhdammit
Default

Quote:
Originally Posted by falko View Post
Does the DOS disk try to connect to the SAMBA server anonymously, or did you configure a username/password somewhere?
It has a username/password included. I am using the DOS Network Boot disk from netbootdisk.com.
Reply With Quote
  #6  
Old 3rd November 2010, 18:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Does the username/password work if you try to connect from another Samba client?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 4th November 2010, 04:43
withanhdammit withanhdammit is offline
Junior Member
 
Join Date: Jun 2009
Location: Pacific Northwest, USA
Posts: 11
Thanks: 1
Thanked 2 Times in 2 Posts
Send a message via Skype™ to withanhdammit
Default

I was finally able to get it to connect via the DOS disk by forcing the user/group. New smb.conf below (red is what I deleted, green is what I added (or changed a value to)

If there's a better way to do this, please let me know.

h

Code:
[global]
        workgroup = PMI
        server string = %h server
        obey pam restrictions = no yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword$
        unix password sync = Yes
        syslog = 0
        security = group share
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        wins server = 10.0.0.1
        wins server = 10.0.0.2
        panic action = /usr/share/samba/panic-action %d
        encrypt passwords = no

[ghostshare]
        comment = Ghost share
        path = /usr/share/ghostshare
        valid users = ghost
        force user = ghost
        force group = users
        create mask = 0555 0777
        directory mask = 0555 0777
        writeable = yes
        guest ok = yes
        read only = no
Reply With Quote
The Following User Says Thank You to withanhdammit For This Useful Post:
falko (4th November 2010)
Reply

Bookmarks

Tags
anomyous, dos, samba

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmin upgrade lishaw1968 Installation/Configuration 15 26th August 2010 15:23
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
OpenLDAP + Samba Domain Controller On Ubuntu 7.10 E1sbaer HOWTO-Related Questions 3 7th May 2008 18:41
Samba access to Directory atjensen11 Server Operation 0 27th January 2008 22:30
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26


All times are GMT +2. The time now is 16:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.