LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-15-2006, 06:02 PM   #1
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 115

Rep: Reputation: 15
Why samba ask for a password


I tried to mount a drive from windows XP and I tried and tried and finally got it to work. my issue is the following, samba will ask you for some authentication, however it will still ask you even if Windows dont. This makes that you cant mount a drive unless you provide a (fake) password.

This is kind of confusing since you propously set it as 0 authentication so people can access it freely.

If this was a Fat32 usb drive, it will be annoying to put a password on it. however why is this ok when mounting a windows share?
 
Old 04-16-2006, 03:49 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
Could you post your smb.conf

One thing you could look at, are you both part of the same workgroup?

have you set in the global section security = share

e.g.

[global]
security = share

If it is set to security = user it will ask for a password to authenticate.
 
Old 04-17-2006, 05:23 PM   #3
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 115

Original Poster
Rep: Reputation: 15
My smb.conf is here. I dont see much of the point since I think smb.conf is for the samba server.

My setup is getting from a linux machine into a Windows share. AFAIK smb.conf is mainly for the linux machine setup.

In other words the shared folder is ont he windows PC.

This windows pc doesnt require any password but when I wanted to mount it from linux it did ask me for a password.

My fstab looks like this:
Code:
//estudio/Documentos\040c /mnt/Winbugs smbfs user,credentials=/etc/samba/auth.estudio.proprietario 0 0
 
Old 04-17-2006, 09:24 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
Sorry about that, I thought you were trying to mount a samba share onto a windoze machine. Your actually trying to mount a windoze share on a linux machine, so the smb.conf is not required.

Have you added root user to samba, since you are running samba you still need to add a root user:

smbpasswd -a root
 
Old 04-18-2006, 02:10 AM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
Quote:
Originally Posted by Jzarecta
Code:
//estudio/Documentos\040c /mnt/Winbugs smbfs user,credentials=/etc/samba/auth.estudio.proprietario 0 0
what is in /etc/samba/auth.estudio.proprietario ?
 
Old 04-18-2006, 02:41 AM   #6
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 115

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fotoguy
Have you added root user to samba, since you are running samba you still need to add a root user:

smbpasswd -a root
Hi I am not a networking guy so I havent used all the options of samba. Can you please explain me a bit on why I will want to do this in the future and how will it change the way I interact with windoze on a network.
 
Old 04-18-2006, 07:06 AM   #7
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
I only use samba on my home network so I haven't had a lot of experience with it. But you need the samba daemon to mount the windoze shares on the linux machine. Samba needs to run as root to have permission to mount shares on to be able to write to the unix file system. So you need to add root as a samba user, and the same goes for any other users you have on the system that you want to have access through samba.

In your case it may not make any difference but I thought it maybe something to try just in case samba is having trouble accessing the fle system to mount the share. It may be trying to mount it as root but there is no samba root user.
 
  


Reply

Tags
cifs, mount, password, root, samba, smb, smbpasswd, windoze


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
SAMBA password changes? Matir Linux - Software 1 03-01-2005 04:44 PM
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
Samba password help wbheinkel Linux - Networking 11 02-07-2002 06:47 PM


All times are GMT -5. The time now is 02:34 PM.

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