LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2009, 01:11 AM   #1
wwarren
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Samba user config help


I have Samba running on Ubuntu 8.10 and I'm accessing it from WindowsXP. Currently, when I log in it connects as nobody/nogroup. My Ubuntu and XP usernames and passwords match, so I'd prefer it to log in using that account instead of "nobody". I've been trying to modify smb.conf to make that work but so far haven't had success. I'm wondering if in addition to my Ubuntu and XP usernames, is there a separate Samba username I need to make too? I've tried different permutations of the various "guest" options and "valid users" options, but so far no success. If I set "valid users" to equal my ubuntu and windows username, I can't get in at all. It prompts over and over for my password as if its invalid. The following smb.conf is what I'm currently using that lets me in, but as "nobody".

Code:
[global]
        log file = /var/log/samba/log.%m
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        obey pam restrictions = yes
        map to guest = bad user
        encrypt passwords = true
        passwd program = /usr/bin/passwd %u
        passdb backend = smbpasswd
        dns proxy = no
        server string = %h server
        unix password sync = yes
        workgroup = workgroup
        os level = 20
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        usershare allow guests = yes
        max log size = 1000
        pam password change = yes
[music]
        writeable = yes
        public = yes
        path = /mnt/mybook/music
Help?
 
Old 02-21-2009, 01:33 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Yes, and use smbpasswd for that purpose - see man smbpasswd
 
Old 02-21-2009, 10:55 PM   #3
wwarren
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Yup, that did it. I hadn't realized that Samba kept track of users separately from linux users.
 
  


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
Samba Config not working setting up user shares. cogs_bobv Linux - Software 9 10-11-2005 08:58 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
Easy httpd config: Config for ~user lsgko Linux - Software 0 08-21-2003 11:55 PM
Easy httpd config: Config for ~user lsgko Linux - Newbie 2 08-18-2003 05:34 PM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:39 PM.

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