LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2008, 09:29 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 889

Rep: Reputation: 41
SAMBA authentication ?


I have set up samba and configured resources /pub for "pcguest" account and it works perfect (read/write access for for everyone. No authentication is needed)

Now, I want to set new resource called /pub2 where access is limited only for user "userx".

What I did:
I created userx in /etc/passwd and his home dir in /pub2
I created userx using "smbpasswd"
Both users has this same passwd.

In /etc/samba/smb.conf added:
Code:
[pub2]
path = /pub2
volume = userx
comment = Programy userx
public = yes
writable = yes
share modes = yes
read only = no
create mode = 0775
directory mode = 0775
oplocks = True
level2 oplocks = True
After SAMBA restart:
sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir.
This is expected behavior... but why the heck I cant have way to log on to user "userx" account ?

How it works ? What am I doin wrong ?


Used:
Slackware 12, Samba 3.0.25b (from package).

Last edited by czezz; 02-03-2008 at 09:34 AM.
 
Old 02-03-2008, 04:02 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by czezz View Post
sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir.
This is expected behavior... but why the heck I cant have way to log on to user "userx" account ?
You need to map the share to a drive. Try
Code:
C:\>net use U: \\machine\pub2 password_here /USER:userx

The command completed successfully.

C:\>
This will map pub2 to your U: drive.
 
Old 02-03-2008, 04:39 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 889

Original Poster
Rep: Reputation: 41
That helps - thanks David.
Nevertheless still looking for solution where clicking on resource (/pub2) user is asked for login and passwd.
 
  


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
Samba and authentication michshelly Slackware 11 09-04-2006 02:18 AM
Samba/XP authentication jxrod2000 Linux - Networking 3 08-09-2006 07:37 PM
Samba without authentication maginotjr Slackware 6 11-21-2005 05:07 PM
Samba authentication cmoloney Linux - Networking 32 12-01-2003 09:36 PM
Samba authentication ltrain Linux - Networking 1 06-13-2001 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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