LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2008, 04:43 PM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
samba mapping to NIS user


Hello all,

I have a server which I had samba working on Suse 10.1 . I upgraded it to 10.2 and things got changed and moved and so it didn't really matter that samba wasn't working.
However, now I upgrade to 10.3 and I've installed some new hard drives in it. I really need samba to work on it. I have the basics up and running I can see the box from my windows box but I can't write to it. Others who don't have my username can't read the folders, even when I log in with my username and password?!?!?

How can I tell samba that my username on the windows box is the same as the NIS username. Any ideas would be great.

Currenly I think samba is seeing my windows box as everyone else, cus when I change flags from 775 to 770 I can't read the folder anymore.

Cheers,
 
Old 01-23-2008, 08:38 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
I have gone round and round this track quite a few times, and eventually stub my toe on the inconvenient fact that Samba does not use the Linux password file (or shadow passwords) to validate logons. Instead, it uses a parallel data set in /etc/samba/smbpasswd. To further confuse things, it uses a file named /etc/samba/smbusers to map various SMB logon names onto Linux logon names before consulting its private password file. All this is done for some obscure but probably defensible reasons having to do with system-wide security, but it sure does make it hard to debug things in any straightforward way.

There is a pretty good tutorial on how to debug a new installation from both sides here: http://us3.samba.org/samba/docs/man/...n/install.html
starting with "List Shares".
 
Old 01-30-2008, 04:57 PM   #3
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Thank you.

I'm looking through it now
 
  


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
NIS Client/Server setup... mapping Home Directories trey85stang Linux - Networking 4 01-06-2011 05:29 AM
User migration from Samba to NIS ice_hockey Linux - Networking 1 05-16-2005 09:23 PM
samba user mapping michal017 Linux - Software 4 03-18-2004 02:06 AM
UID Mapping for NFS without NIS jgombos Linux - Networking 1 07-27-2003 06:52 PM

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

All times are GMT -5. The time now is 10:18 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