LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-25-2012, 07:40 AM   #1
Rick6935
LQ Newbie
 
Registered: Apr 2012
Posts: 10
Blog Entries: 3

Rep: Reputation: Disabled
samba always ask for password


I have a basic samba setup, I want to be able to share from this box (linux) to others on the network (mostly windows) using samba.

I just want that samba always asks for a password from anyone on the network that would like to browse any shared folders.
 
Old 04-26-2012, 12:46 AM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 435

Rep: Reputation: Disabled
Did you setup the users to connect in samba as well? You could remove it asking for the password entirely but that's not very safe.
 
Old 04-26-2012, 01:40 AM   #3
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 166

Rep: Reputation: 8
samba runs in modes such as :
user mode in which asks for password
share mode in which it does not ask for password
 
Old 04-26-2012, 01:58 AM   #4
Rick6935
LQ Newbie
 
Registered: Apr 2012
Posts: 10
Blog Entries: 3

Original Poster
Rep: Reputation: Disabled
yes, I have setup users to connect in samba.The problem is that the users who are using windows, try to access file server in linux centos 6.2 ask username and password very first time only. But when user try to access again then samba server does not ask for username and password.I want that whenever user try to access the same server then each time it should ask for username and password.
 
Old 04-26-2012, 02:02 AM   #5
descendant_command
Member
 
Registered: Mar 2012
Posts: 762

Rep: Reputation: 159Reputation: 159
It does, but windows gives it without asking the user.
 
Old 04-26-2012, 02:22 AM   #6
Rick6935
LQ Newbie
 
Registered: Apr 2012
Posts: 10
Blog Entries: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
It does, but windows gives it without asking the user.
Please tell if any configuration need to do in linux samba server which let to ask username and password each time when window user try to access.
 
Old 04-26-2012, 02:28 AM   #7
descendant_command
Member
 
Registered: Mar 2012
Posts: 762

Rep: Reputation: 159Reputation: 159
No you can't.
It is windows that is cacheing the credentials.
 
Old 04-26-2012, 02:34 AM   #8
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 435

Rep: Reputation: Disabled
When I connect to my samba share on a Windows computer, there's an option (after the username/login) that says something about remembering credentials (it's a little box you can check) and since that has been set I've never had to type in my credentials a second time when logging in.
 
Old 04-26-2012, 02:48 AM   #9
Rick6935
LQ Newbie
 
Registered: Apr 2012
Posts: 10
Blog Entries: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
No you can't.
It is windows that is cacheing the credentials.
any solution
 
Old 04-26-2012, 02:57 AM   #10
descendant_command
Member
 
Registered: Mar 2012
Posts: 762

Rep: Reputation: 159Reputation: 159
Quote:
Originally Posted by Rick6935 View Post
any solution
Well, it is already doing what you asked.
What are you really trying to achieve?

I suppose you could set all the Win clients (with a group policy or such) to never cache credentials, but I think you might get some resistance from the users when they have to enter every password repeatedly all day every day...

Last edited by descendant_command; 04-26-2012 at 03:00 AM.
 
Old 04-26-2012, 03:02 AM   #11
Rick6935
LQ Newbie
 
Registered: Apr 2012
Posts: 10
Blog Entries: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Well, it is already doing what you asked.
What are you trying to achieve?
I want to make file server in linux centos 6.2 which always ask for username and password when window user try to access.

Please suggest me what to do?
 
Old 04-26-2012, 03:11 AM   #12
Rick6935
LQ Newbie
 
Registered: Apr 2012
Posts: 10
Blog Entries: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Well, it is already doing what you asked.
What are you really trying to achieve?

I suppose you could set all the Win clients (with a group policy or such) to never cache credentials, but I think you might get some resistance from the users when they have to enter every password repeatedly all day every day...
Should I make group policy in window pc or in linux samba. If I have to make a group policy in linux then please elaborate me.
 
Old 04-26-2012, 04:45 AM   #13
descendant_command
Member
 
Registered: Mar 2012
Posts: 762

Rep: Reputation: 159Reputation: 159
Samba doesn't (yey maybe...) do GP.
Again, that is probably not what you want to do.
Why do you want the password asked EVERY time if the user is the same and has already entered the password?
 
Old 05-14-2012, 08:50 PM   #14
kigordid
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Samba doesn't (yey maybe...) do GP.
Again, that is probably not what you want to do.
Why do you want the password asked EVERY time if the user is the same and has already entered the password?
I am currently trying to achieve the exact same thing. For your question, I will answer:
In some office environment everyone can sit at the desk of someone else and access unauthorized files provided the machine is not user locked.
We just want that everytime anyone is trying to access the samber server, he or she is prompted to enter the credentials. It is for security purposes and the users agree.

So please if you can provide me with a way to do that, I will be very pleased.
Thank you
 
Old 05-15-2012, 01:49 AM   #15
descendant_command
Member
 
Registered: Mar 2012
Posts: 762

Rep: Reputation: 159Reputation: 159
How do you define an "access"?
The Windows SMB client is constantly 'accessing' the samba server and Windows caches the user credentials.

The only way to get what you want is to log off each user (on the Win box) when they are finished their 'access'.

Tell your users to lock their stations.

Last edited by descendant_command; 05-15-2012 at 01:50 AM.
 
1 members found this post helpful.
  


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
[SOLVED] Where is samba password file - need to list samba users explorer Slackware 8 04-06-2011 05:26 PM
After changing Windows AD password Samba\Winbind still uses old password Criller Linux - Security 2 02-28-2008 04:14 AM
Logon samba on other samba password list hernandi Linux - Networking 1 10-14-2003 12:46 PM
Logon samba on other samba password list hernandi Linux - Networking 0 10-14-2003 12:40 PM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM


All times are GMT -5. The time now is 11:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration