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 |
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? |
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. |
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. |
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!!!" |
Look mom I'm learning xp pro on LinuxQuestions
|
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! ;-) |
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. |
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.
|
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. |
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. |
I still havent had any luck. I will keep plugin away till i get it
Thanks for the help micxz |
Did you use this setting I suggested? Maybe you forgot to add the user via `sbmadduser`? This may be the problem if so.
|
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? |
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. |