LinuxQuestions.org
Visit Jeremy's Blog.
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 06-16-2010, 01:44 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
how do i get windows xp to request for a password when i try to access a share in net


it used to be like when i setup a samba share, windows would ask for a password when i try to access it through network neighborhood (no matter what windows account i was using it would ask for a username and password) i want it to be setup like that again instead of having a windows profile that matches the username and password in the smbpasswd file

i am asking for windows to ask for username and password when i try to access a share in network neighborhood instead of having the same windows profile that matches the samba profile

ps: i am using webmin to manage samba graphically, the newest version of webmin

thanks

Last edited by baronobeefdip; 06-16-2010 at 01:57 PM.
 
Old 06-16-2010, 01:59 PM   #2
taylorjp75
LQ Newbie
 
Registered: Jul 2009
Location: California
Distribution: RHEL,Debian,SUSE,SCO...
Posts: 10

Rep: Reputation: 0
Sounds like you may need to make sure simple file sharing is turned off. Open a Windows Explorer window, click on Tools menu then Folder Options, go to View tab, scroll all the way down in Advanced settings section and uncheck "Use simple file sharing".
 
Old 06-16-2010, 02:30 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
you can't configure anything on the unix computer to do this its all on the windows computer?
 
Old 06-16-2010, 02:44 PM   #4
taylorjp75
LQ Newbie
 
Registered: Jul 2009
Location: California
Distribution: RHEL,Debian,SUSE,SCO...
Posts: 10

Rep: Reputation: 0
It's Windows that is trying to use the credentials you are logged into Windows with to access the share. That's what simple file sharing does, it assumes you have the same users on all your computers, or that your on a common domain or workgroup etc... If you turn off simple file sharing Windows will prompt authentication to connect to the share, that is as long as your samba share is password protected, you can make your samba share unprotected, in which case Windows would just connect to it with no authentication. You can do this with the security option in smb.conf, set to user it will require authentication, set to share it will allow everyone, gotta have the right perms on the folder too.
 
Old 06-24-2010, 04:47 PM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
what about something different

how do i get windows to ask for a login on startup and not let anyone in until you enter a username and password for the samba server without putting an account on windows that resembles the samba one (i don't want to add accounts to alot of computers every time someone gets a new account for the network)
 
Old 06-24-2010, 05:58 PM   #6
taylorjp75
LQ Newbie
 
Registered: Jul 2009
Location: California
Distribution: RHEL,Debian,SUSE,SCO...
Posts: 10

Rep: Reputation: 0
Try these steps

first create a user on your linux box,

# useradd username
# passwd username

then add the user to samba

# smbpassword -a username

then edit your smb.conf file

# vi /etc/samba/smb.conf

Check the security setting, should be on or around line 101, set to user to prompt for login to the share. Then add your share info to the bottom of the file, should look something like this

[sharename]
comment = sharename
path = /pathtoshare
browseable = yes
writable = yes

Make sure the user you created has rw access to the shared folder, and that's it, then go back to your Windows side and you will get prompted for user/pass when you try to map to the share, and you will of course use the user/pass you setup on the Linux side.
 
Old 06-24-2010, 06:02 PM   #7
taylorjp75
LQ Newbie
 
Registered: Jul 2009
Location: California
Distribution: RHEL,Debian,SUSE,SCO...
Posts: 10

Rep: Reputation: 0
What I was saying before though is that Windows Simple File Sharing suppresses the prompt, you may still need to turn that off on any computer you want to connect to the share from, or you need to hard map the share to a drive letter and use the different user/password option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Net Applications Changes Methodology: Windows & Linux Market Share Rises LXer Syndicated Linux News 0 08-07-2009 11:30 AM
unable to access share with password from XP sunlinux Linux - Networking 1 01-08-2007 04:24 AM
Windows wants password to open Linux share watha Linux - Networking 2 07-23-2006 10:42 AM
windows share password cracking scott4957 General 9 10-23-2005 07:24 AM
How to access Windows share? correro Linux - General 3 03-10-2003 12:18 AM

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

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