LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2007, 10:26 PM   #1
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
samba and ext3


smb.conf as follows:

Code:
[matty-home]
	comment = Matty's home folder
	path = /home/matty
	valid users = matty
#	public = no
	writeable = yes

[matty]
	comment = Matty's data folder
	path = /maxtor/matty
	valid users = matty
#	public = no
	writeable = yes
The first folder resides on a reiserfs formatted partition and the second on an ext3 formatted one.

In the fisrt case, I have to enter User name and password to gain access... in the latter, I can enter anything as username as long as I have the right password.

What gives?

Last edited by mattydee; 11-28-2007 at 10:28 PM.
 
Old 11-29-2007, 03:12 PM   #2
m3lkor001
LQ Newbie
 
Registered: Jun 2006
Location: Elk Grove, CA
Distribution: Slackware 12.0
Posts: 27

Rep: Reputation: 15
yesterday i was lookin around and remember seeing something about not requireing a login, and being able to adjust different settings for different groups. it was either on the desptop -> right click -> and properties and very right tab or
in the menu/settings ...

sorry i can't be very specfific but still real new. heop that helps a bit
 
Old 11-29-2007, 07:07 PM   #3
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Update:

Even weirder...
If I enter a bogus username and the right password to mount the ext3 share, then I can do the same for the reiser share.

On the other hand, if I try to mount the reiser share first, then I have to have the right username and password, but I can still mount the ext3 share with bogus username and right password.

Is this a bug in samba or bad configuration on my part?
 
Old 11-29-2007, 07:12 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't think it's either - Samba is caching your password and searching the system for a username to use with it (so it's not filesystem related). There's more info at Samba Security Modes - the section about share level security talks about matching passwords to usernames.
 
Old 11-29-2007, 07:13 PM   #5
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Hi mattydee,

You shouldn't need to share the home dir for the user as this is done by the [homes] share, it identifies the user and gives it access his own home dir.

In the second case only the user matty should be able to connect to that share, check your smb.conf to see if you have samba acting as a public server, run the following command on the command line: testparm -vvv. This will give you a list of all the configurable items of samba and their actual value.


JdogPC
 
Old 11-29-2007, 08:10 PM   #6
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Thanks folks.

I changed things so that the home directory is shared through homes and renamed the other share "matty-docs" and things seem to work fine now...

I was (and still am) using share security level. Now however, I must enter the right username when mounting the ext3 share.

I guess my original problem wasn't really due to the file system but probably because there was some kind of conflict in the way I was sharing homes, the home folder (incorrectly), and a data directory named after the username.
 
Old 11-30-2007, 09:28 AM   #7
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
I think if you use user level security that won't happen...
 
Old 11-30-2007, 11:15 AM   #8
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by Mr_C View Post
I think if you use user level security that won't happen...
Ya, I think you're right... but I don't want to bother with that. I find it inconvenient to have to provide credentials just to browse the shares list. With security = share I can still password protect rw shares and have public ro shares, which suits my needs.

This is my setup for a home network behind a router, so I think I'm relatively safe. I have a strong password + wpa2 protecting wireless access to the router...
 
Old 12-03-2007, 07:49 AM   #9
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Code:
[share]
comment = I guess you b puttin someting here
path = /somewhere/interesting
public = yes
guest ok = yes
With a guest ok you can enter the share without credentials
Oh make sure theres a global parameter saying guest account = nobody (check syntax cause I'm on windows and can't right now)
 
Old 12-03-2007, 12:37 PM   #10
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by Mr_C View Post
Code:
[share]
comment = I guess you b puttin someting here
path = /somewhere/interesting
public = yes
guest ok = yes
With a guest ok you can enter the share without credentials
Oh make sure theres a global parameter saying guest account = nobody (check syntax cause I'm on windows and can't right now)
Thanks Mr. C.

I tried what you said but it doesn't work for me. I need smb4k to be able to list public shares. If I set
Code:
security = user
, my samba server insists on receiving credentials before displaying shares.

PS: I did make sure that I have
Code:
 guest account = nobody

Last edited by mattydee; 12-03-2007 at 12:38 PM. Reason: PS
 
  


Reply



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
Western Digital My Book Ext3 format reports "Ext3-fs: Journal inode is deleted" ChronusDark Linux - Desktop 3 10-31-2006 03:56 PM
Ext3 & tune2fs tweaking question for ext3 experts wrc1944 Linux - General 8 12-11-2005 07:45 AM
ext3 / samba power failure Blaumieser Linux - General 3 03-05-2005 06:36 AM
how to convert ext3 to ntfs? cannot even see ext3 partition parv Linux - Hardware 1 12-31-2004 02:56 PM
samba ext3 problem JohnWayne Linux - Networking 2 09-04-2004 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:23 AM.

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