LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-29-2004, 06:14 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Rep: Reputation: 54
samba users


When I create a samba share that requires a specific user (in share mode) this is how I do it right?

[sharename]
path = /data/shared
comment = some misc share
browseable = yes
writable = yes
create mode = 777
directory mode 777
guest ok = no
username=administrator


Then I did (in linux) adduser = administrator and passwd administrator and set a password.

This password matches with my win2k administrator password.

But for some reason it still does not let me access it. If I put guest ok=yes it lets me access it, but it also allows any user to access it.

So what am I missing here?

I tried this in user security mode and same thing. (but used valid users= instead of username=)

Thanks in advance for the help!
 
Old 08-29-2004, 06:23 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You also need to add the samba user...
smbpasswd -a fred and it will prompt you to enter the password for the new samba user, in the example that is fred.

Also, run this to say that the linux user fred is also the samba user fred......
echo fred = fred >> /etc/samba/smbusers
 
Old 08-29-2004, 06:30 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Oh yeah duh I forgot about that! Thanks it worked.

and that last line, I never remember about that one, is it necessary or is it just another way of doing it? since it works without.

Also I had to do the first one twice, since the first time it said it could not open the database, is that normal? (user did not yet exist?)
 
Old 08-29-2004, 06:48 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Oh another question

I created a share that a normal windows user can access, but not the administrator, but yet even the administrator can access it. I'm just playing around to learn more then anything. I'm just wondering is it because linux reconizes the windows administrator as an admin so it automaticly allows it access to anything? Or did I do something wrong somewhere?

Vise versa works though, a share that I assigned to administrator can't be accessed by the normal user.

And another thing, if I set the security level to "user" it won't even let me access the server at all, not even see the shares or anything.

Last edited by Red Squirrel; 08-29-2004 at 06:53 PM.
 
Old 08-29-2004, 07:06 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If it works without that last line, leave it that way.
I'm thinking the administrator should be just like root where root has full access, but users don't.
I use the level user method but I have it set up as a domain and the windows boxes have to join the domain.
 
Old 08-29-2004, 07:10 PM   #6
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Suddently, even under share level, everyone can access everything. I have no clue why. I had it working for a while but suddently it stopped working. I VNC to another machine logged in as "auclair" but yet it can access the share that has "username=administrator" and vise versa. I had it working a while ago. Any suggestions?
 
Old 08-29-2004, 07:17 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Try valid users = fred
instead of
username = fred
 
Old 08-29-2004, 07:28 PM   #8
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Great thanks that seems to be working. Only thing is though, instead of the password login box I get "the specified network password is not correct". So is that normal? I assume it is, and it's what I want anyway, but just checking.

So if "valid users" works under share level security, what would be the advantages of using user level security? since it probably comes up to the same thing right?
 
Old 08-29-2004, 07:34 PM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Sorry, I haven't even used share level so I can't be much help there.
 
Old 08-29-2004, 07:39 PM   #10
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,336

Original Poster
Rep: Reputation: 54
Ok that's fine, as long as everything is working at my end.

Now I need to put a virus on my network to test this out. But I'm going to look into a much safer test alternative. :P
 
Old 08-29-2004, 07:48 PM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I don't put viruses on my network even if it is linux. There might be some sort of test available but I don't know what off hand.
 
  


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 Users Hampster Linux - Networking 7 12-05-2005 02:08 PM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 02:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM
can't add users to "samba users" in control center g_jakes Linux - Wireless Networking 1 05-20-2005 01:27 PM
samba users PlatinumRik Linux - Networking 15 05-23-2003 08:25 PM

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

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