LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2007, 11:56 AM   #1
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 56

Rep: Reputation: 2
Question Simple samba server... I'm having no luck.


Very simple Samba setup that I cannot, for the life of me, get to work. I'd really appreciate a bit of help!

Linux PC:
- Debian etch 4.0 (Linux debian 2.6.18-5-686 #1 SMP Fri Jun 1 00:47:00 UTC 2007 i686 GNU/Linux)
- Samba v3.0.24 installed
- IP of eth1 is 10.0.11.19
- Only two users on this machine, "root" and "steve". Samba password for "steve" has been updated with smbpasswd.
- Shared directory is "/shared", owned by "root", group is "users". Permissions are drwxrwxr-x.
- I have been able to mount a folder that is shared on the Windows PC.
- Hostname is "debian"
- When I try to mount the samba share I am denied access:
Code:
debian:/tmp# mkdir deb
debian:/tmp# mount -t smbfs -o username=steve //debian/shared deb
Password:
3561: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
- Log files do not show any issues. I deleted all the files in /var/log/samba, restarted samba and tried to access the share fromboth the Linux machine and the Windows machine. Some log files were created, but the only entries in the log pertain to printing.
Code:
debian:/var/log/samba# ls
log.10.0.11.19  log.10.0.11.64  log.smbd  log.stevespc

debian:/var/log/samba# head -n 4 log.10.0.11.19

debian:/var/log/samba# head -n 4 log.10.0.11.64
[2007/09/17 10:24:42, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/17 10:24:42, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!

debian:/var/log/samba# head -n 4 log.smbd
[2007/09/17 10:42:15, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2007/09/17 10:42:15, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!

debian:/var/log/samba# head -n 4 log.stevespc
debian:/var/log/samba#
Windows PC:
- Windows XP SP2
- PC name is "stevespc"
- IP of this PC is 10.0.11.64
- Workgroup is "workgroup"
- Username is "steve". Password is the same as the password for "steve" on the Linux PC.
- No firewall software installed
- Can browse other Windows PC's without an issue
- I can browse to the "debian" machine and see that there is a "shared" folder, but when I double click the folder to open it I am asked to authenticate. None of the usernames will work "steve", "debian\steve", "steve@debian", etc.

My current smb.conf file:

Code:
[global]
        netbios aliases = deb1000
        server string = %h
        interfaces = eth1
        bind interfaces only = Yes
        obey pam restrictions = Yes
        passdb backend = tdbsam
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
        syslog = 10
        log file = /var/log/samba/log.%m
        max log size = 1000
        load printers = No
        dns proxy = No
        ldap ssl = no
        panic action = /usr/share/samba/panic-action %d
        invalid users = root
        hosts allow = 10.0.11.0/255.255.255.0

[shared]
        comment = Shared files
        path = /shared
        valid users = %S
        read only = No
        create mask = 0775
        directory mask = 0775
 
Old 09-17-2007, 12:47 PM   #2
linuxjamil
Member
 
Registered: Dec 2005
Distribution: Fedora Core 5, Sun Solaris 8
Posts: 122

Rep: Reputation: 15
Exclamation samba

yo you there?Dear

Would u plz explain why this is read only = no
 
Old 09-17-2007, 12:57 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Code:
valid users = %S
This will expand to
valid users = shared
 
Old 09-17-2007, 01:08 PM   #4
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by linuxjamil View Post
Would u plz explain why this is read only = no
I want to be able to write files to this share.
 
Old 09-17-2007, 01:09 PM   #5
Calab
Member
 
Registered: Oct 2003
Location: Calgary, AB, Canada
Distribution: CentOS, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 2
Talking

Quote:
Originally Posted by jschiwal View Post
Code:
valid users = %S
This will expand to
valid users = shared
Doh!

Do I feel stupid. Works great now.

Thanks for the good eyes!

Last edited by Calab; 09-17-2007 at 01:15 PM.
 
Old 09-17-2007, 01:11 PM   #6
andyccn
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 46

Rep: Reputation: 15
Quote:
Originally Posted by linuxjamil View Post
yo you there?Dear

Would u plz explain why this is read only = no
Because he wants users to be able to write to it, why else?

I would try adding your username, steve, explicitly in the "valid users" line and restart Samba.

From what I can remember of my Samba days, you could also try putting @users (e.g. allow anyone in the Unix Users group)
 
Old 09-17-2007, 10:21 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by SimpleSimon View Post

Thanks for the good eyes!
Actually, they aren't so good. I can't find my glasses. Without my glasses I can't see well enough to find them! Talk about a catch 22 situation.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to create Folder in samba with no luck Omak Linux - Newbie 3 05-27-2006 04:18 PM
Need a simple Samba Server derajer Linux - Newbie 1 12-27-2005 04:48 PM
simple steps to login to samba domain server from win Xp dbiswas_slg Linux - Networking 2 10-29-2005 03:47 AM
Still no luck with x-server display on thin client banner Linux - General 0 04-06-2005 12:09 PM
Any luck with Server Wizards Hampster Mandriva 1 01-13-2005 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration