LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   samba user and psswd (https://www.linuxquestions.org/questions/linux-networking-3/samba-user-and-psswd-233935/)

rkemp 09-22-2004 02:42 PM

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

huibert.alblas 09-22-2004 02:55 PM

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?

micxz 09-22-2004 02:55 PM

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.

rkemp 09-22-2004 03:41 PM

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.

andy_P 09-22-2004 03:42 PM

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!!!"

micxz 09-22-2004 04:05 PM

Look mom I'm learning xp pro on LinuxQuestions

andy_P 09-22-2004 04:08 PM

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!

;-)

rkemp 09-22-2004 04:09 PM

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.

micxz 09-22-2004 04:16 PM

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.

rkemp 09-22-2004 04:29 PM

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.

micxz 09-22-2004 05:02 PM

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.

rkemp 09-22-2004 07:20 PM

I still havent had any luck. I will keep plugin away till i get it

Thanks for the help micxz

micxz 09-22-2004 07:55 PM

Did you use this setting I suggested? Maybe you forgot to add the user via `sbmadduser`? This may be the problem if so.

rkemp 10-05-2004 01:57 AM

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 mark:password"

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

What is the correct syntx for this command?

micxz 10-05-2004 02:15 AM

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.


All times are GMT -5. The time now is 05:42 AM.