LinuxQuestions.org
Review your favorite Linux distribution.
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 09-22-2004, 02:42 PM   #1
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Rep: Reputation: 15
samba user and psswd


I recently setup samba to run as a file server. I have setup public shares and private shares.

The problem is when trying to access the private shares i cannot change the username in the username field for the network login. it shows as follows in the windows box.

user name: \\linuxserver\Guest

Password :


THe section for the username is grayed out and i cannot change the username to the correct username for that folder.

If i map the network drive i can put connect as a different user and then type in the username and correct password and it all works great. but there are specific folders i do not want to map as network drives.


Any suggestions.

Thanks
 
Old 09-22-2004, 02:55 PM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Either I dont understand your problem,
or you want to change the behaviour of an operating system from Redmond.

As far as I can see this has nothing to do with the samba setup,
but how network browsing is handled in the windows explorer.

I think nobody can help yuo with this, it is just the way Microsoft thought it should handle this situation.

What is wrong with accessing the spezific shares as a networkdrive?
 
Old 09-22-2004, 02:55 PM   #3
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Map the share in windows to say "Z:" and check the box that says log on with a different user. Use you linux username here and pass.

If you don't want to map the drive. You best just type in your username and password every time, or create a user/pass the same as on linux and all works smooth. (This is my approach.) No more dialogs if you have the same user/pass on both boxes.
 
Old 09-22-2004, 03:41 PM   #4
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Original Poster
Rep: Reputation: 15
mapping the drive works just fine and clicking the check box login as different user is fine also.


THe problem is that i cannot take the Guest username out of the dialog box it is grayed as guest.

I know mapping works but there has to be a solution to this other then mapping every folder that is private.
 
Old 09-22-2004, 03:42 PM   #5
andy_P
LQ Newbie
 
Registered: Sep 2004
Distribution: sue9.1 / redhat 9 / knoppix
Posts: 8

Rep: Reputation: 0
sounds to me like your trying to hit a folder on an xp pro box?
in the control panel - in admin tools - open up "local Security Settings"
in the left hand window pane expand - "security settings" - "local policies" - "security options"
in right hand window scroll down to - "Network Access:Sharing and security model for local accounts"
Change this from "Guest only" to "Classic - local users authenticate as themselves"

hope this helps....

first tme ive seen anything that i might have the remotest idea about!! :-)

"why didn't they teach linux at skool rather than dos!!!"
 
Old 09-22-2004, 04:05 PM   #6
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Look mom I'm learning xp pro on LinuxQuestions
 
Old 09-22-2004, 04:08 PM   #7
andy_P
LQ Newbie
 
Registered: Sep 2004
Distribution: sue9.1 / redhat 9 / knoppix
Posts: 8

Rep: Reputation: 0
is one extracting the michael from me?

i know nadda about alot things and loads about nuffink.

with time my friend i will loose my linux cherry and spread the kernel love around this wee planet!!

cheers and good night!

;-)
 
Old 09-22-2004, 04:09 PM   #8
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Original Poster
Rep: Reputation: 15
Andy_p that was a helpful tip, but i still seem to be having the same problem. I am unsure if there is windows setting that need to be changed or something on the samba server.

I run into this issue off of the windows 2003 server and the windows xp workstations. I have yet to try the windows 2000 work stations but i fear its going to be the same issue.


Thanks for all the suggestions.
 
Old 09-22-2004, 04:16 PM   #9
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Are you logged in to windows with the same username as the samba server? Try this maybe er maybe you did? I'm thinking if your logged in as Guest it will show that field as so? I guessing.
 
Old 09-22-2004, 04:29 PM   #10
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Original Poster
Rep: Reputation: 15
No matter what i am logged in as for the win boxes the dialog box is still hard coded as guest. What it appears is samba is forcing the username guest.

I do not have samba working in conjunction with an active directory server for authentication so samba should be doing its own authentication. I have samba as a stand alone server.
 
Old 09-22-2004, 05:02 PM   #11
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
ah'

try to add under global in you settings in smb.conf

map to guest = Bad User

This tells samba to use the file smbusers for user mapping.
 
Old 09-22-2004, 07:20 PM   #12
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Original Poster
Rep: Reputation: 15
I still havent had any luck. I will keep plugin away till i get it

Thanks for the help micxz
 
Old 09-22-2004, 07:55 PM   #13
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Did you use this setting I suggested? Maybe you forgot to add the user via `sbmadduser`? This may be the problem if so.
 
Old 10-05-2004, 01:57 AM   #14
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Original Poster
Rep: Reputation: 15
well in my smbusers list the user is not shown.

I assume the user exists though since i can map with that username. when using the smbadduser i get the following error

ERROR: Must use unixid:ntid like -> zakhroffm

The smbpasswd -a command does work though

If i do the following command i get another error

"smbadduser markassword"

ERROR: mark is already in /etc/samba/smbpasswd SKIPPING

What is the correct syntx for this command?

Last edited by rkemp; 10-05-2004 at 02:02 AM.
 
Old 10-05-2004, 02:15 AM   #15
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Do you have the same user on nt as unix? I think it's:
smbadduser mark:mark
But if you got the error "already in" then your added already.
 
  


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 -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
add samba user (Samba 3.0.2) geodo Linux - Networking 5 12-02-2004 08:36 AM
Samba User ID? illuminatedwax Linux - Networking 0 09-30-2004 02:27 PM
Map WXP user to Linux user in Samba? Worstje Linux - Software 1 03-26-2004 06:50 PM
Samba: What group/user is used by Samba to access directories? DJ_Cyberdance Linux - Networking 3 10-04-2003 04:21 AM

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

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