Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

Samba Users

I am new to setting up Samba shares on Linux but I have a limited experience with Linux. I want to set up two users (administrator = root) and (roomate = limited account) both with passwords that have access on different levels on the two shares I have setup.

I have the drives I want shared already configured in Samba as follows

[share1] path = /share1 available = yes browseable = yes public = yes writable = yes
[share2] path = /share2 available = yes browseable = yes public = yes writable = yes


Currently when you try to connect to the server from Windows XP it asks for credentials and no matter what I supply it says invalid.  I would like to make a roomate username with only read and list access to the shares, I also want to create an administrator account with full access.

If possible I would like to be able to view who is connected to what shares and be able to kick them (like Windows 2003's file server admin console) but thats not important if its not easy to setup.
0
strickdd
Asked:
strickdd
5 Solutions
 
mjdmeCommented:
1st you have to do the reg hack on the xp machine

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NetLogon\Parameters

"RequireSignOrSeal"=dword:00000001

to

 "RequireSignOrSeal"=dword:00000000

Use the group called users for the restriction, and add yourself to the root and wheel group.

Then for the shares

[share1]
        comment = Shared stuff for all
        path = /share1
        valid users = could be their names, ip #, ip range
        read list = user,guest,ftp
        read only = No


add more comments if thsi does not work
0
 
strickddAuthor Commented:
Why would I have to use a registry hack on Windows?  Isn't it the Samba configuration script's job to emulate Windows handshakes?
0
 
giltjrCommented:
Have you setup the userid's "Administrator" and "roomate" and passwords in the samba userid and password files?  Samba does not use the Linux userid's and passwords.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
rindiCommented:
The following site should give you a good idea on what needs to be done:

http://www.reallylinux.com/docs/sambaserver.shtml
0
 
mjdmeCommented:
You also need to add the machine

To add the user's machine to the trust domain a special account has to be made on the Samba box to allow logins by this machine.

adduser -n -g <group> -c <descrip> -d /dev/null -s /bin/false <machine name>$
smbpasswd -a -m <machine name>

Example:
if the machine name were pc800:
adduser -n -g <group> -c <descrip> -d /dev/null -s /bin/false pc800$
smbpasswd -a -m pc800


0
 
strickddAuthor Commented:
I have it working now with the two users I want to have access on the share with the following setup

# Global Parameters

workgroup = home
netbios name = bluetwo
encrypt passwords = yes

[homes]
read only = no
browseable = no

[share1priv]
path = /priv1
browseable = yes
write list = user1
valid users = user1, user2

[share2priv]
path = /priv2
browseable = yes
write list = user1
valid users = user1, user2

[Incoming]
path = /Incoming
browseable = yes
write list = user1, user2
valid users = user1, user2

I can now connect and share files but I may run into problems down the road if this is setup wrong so if anyone has anything to add and can explain what it will do please help me.  Also I am still interested in monitoring the shares, if anyone has an idea on how to set that up.
0
 
mjdmeCommented:
view the samba log files
0
 
pc_sureshCommented:
Use "smbstatus" command to see the samba usage status.

Suresh
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now