LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-30-2003, 07:36 PM   #1
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
How samba know the user from Windoze


Dear All,

I have been troubled by this things for long time and i couldn't find the solutions.

Here my problems :

I have 4 pc running windoze 98 and 1 linux redhat, now i want to connect 4 windoze to linux through samba.

I want one of the windoze user can write and read the file and the rest only have the rights to read the file.

I have tried the write list syntak write list = peter but it doesn't seem to be works.

i have try to figure out how my linux will recognise the user that we have add in our linux.

Anybody can help me figure out how to solve this problem ?

Last edited by joseph; 11-30-2003 at 07:39 PM.
 
Old 11-30-2003, 07:48 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
You can do that with regular permissions.
chmod -R 755 dir
 
Old 11-30-2003, 07:51 PM   #3
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by jcookeman
You can do that with regular permissions.
chmod -R 755 dir
I have do that but it is become all of my windoze user only can read the file, so no one can write it
 
Old 11-30-2003, 07:55 PM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
So you can't make this one user the user/owner of the directory?
 
Old 11-30-2003, 08:14 PM   #5
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by jcookeman
So you can't make this one user the user/owner of the directory?
I can but it doesn't work, it is seem that the samba doesn't know who is the user that can modified or not.

When you connect from windoze, samba will treat all of the user as read only users.

i have thinking, can we make samba prompt a username and passwd when the windoze user tried to access that directory, so when the windoze user give the user name and passwd, samba will autheticated it whther this user have the rights to change the content of the directory or not, do you have any idea how to do that ? or maybe other solutions will be help too ?
 
Old 11-30-2003, 08:35 PM   #6
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
If you set security=user in the smb.conf file then it should prompt you for a username and password, and then you can set permissions after you add the users to samba with smbpasswd -a.

If this works then you can mess with permissions and the different directives like valid users and create mask.
 
Old 11-30-2003, 09:12 PM   #7
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
yea, i also have tried it and it is prompt a passwd when we try to access that folder but i don't know what is the passwd that should given becoz i had given all of the paswd i know and it still rejected.
 
Old 11-30-2003, 09:16 PM   #8
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Well then you are going to have to check your /var/log/log.smb and see what is going on with those users. You probably have a UID mismatch or something.
 
Old 11-30-2003, 09:20 PM   #9
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
do you any other solution instead of using samba to share the directory which only browseable by 4 users and only one of the 4 user had the read write rights?
 
Old 11-30-2003, 09:22 PM   #10
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Have you set local accounts for your users on the Linux machine?
 
Old 11-30-2003, 09:23 PM   #11
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by odious1
Have you set local accounts for your users on the Linux machine?
Yes i have create it
 
Old 11-30-2003, 09:26 PM   #12
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Have you set local accounts for your users on the Linux machine?
useradd -p [password] [username]

and also your Samba accounts after setting local accounts?
smbpasswd -a [username]

Samba will prompt for:
[passwd]
[passwd confirm]







 
Old 11-30-2003, 09:29 PM   #13
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Original Poster
Rep: Reputation: 30
yea i also have do that, but the result still the same. no passwd is match.
do you ever used samba to perform this kind of missions
 
Old 11-30-2003, 09:39 PM   #14
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Check to make sure that the UID in the /etc/passwd file and the UID in the /etc/samba/smbpasswd file are the same.
 
Old 11-30-2003, 09:40 PM   #15
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
Yes, setting up directories with group permissions will accomplish what you want it to. The problem you are having if I understand you correctly is getting authenticated on the machine. If you are getting a password prompt when you try to access the Samba shares than the problem has to be with the /etc/passwd or smbpasswd file. It should not let you create a Samba account without there being a match on the local machine first.

I have had problems in the past where I set the local account by useradd -p. Try doing passwd [user] and reset locally the do the same on samba by smbpasswd [user]. That should do the trick
 
  


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
Samba, Netatalk, Mac OS, Windoze maelstrom209 Linux - Networking 3 12-16-2004 02:03 AM
How do I create shares with Windoze from Samba? dhatcher2 Linux - Software 2 10-28-2004 02:15 AM
Windoze cannot see Linux Samba servers lefehe Linux - Networking 18 04-03-2004 01:17 AM
The dificult relationship of windoze with samba ! Grosvnor Linux - Software 2 08-30-2003 05:08 PM
windoze user level shares theFuzzyOne Linux - Networking 0 04-16-2002 07:55 AM

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

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