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 10-18-2006, 02:56 AM   #1
brunolin
LQ Newbie
 
Registered: Jan 2006
Location: Belgium
Distribution: Debain Sarge
Posts: 5

Rep: Reputation: 0
Connect to samba


Hello Friends,

I have a machine running Ubuntu Dapper next to a
windows 2000 machine. The Linux machine a map (samba).

On my linux machine I want to create a user with only
rights to connect to the linux machine (from the win 2000 machine)
and browse + write the shared samba maps.
So as less rights as possible, only connecting to
shared samba folders. Not even log in into the
machine itself.

How do I do this exactly ?
Which are the correct groups, rights, ...

Thanks in advance.
 
Old 10-18-2006, 07:33 AM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
This would be easier if I was sitting in front of my Ubuntu machine, but I'm at work at the moment. Starting off by creating a system user account in Ubuntu. Set the login shell to "nologin" or "false". This will create the user account, but the user will not be able to login to your machine locally (or using ssh).

Now go to the Administration option that's called File Sharing, or Shared Folders (sorry, I don't have the screen in front of me so I don't know the exact menu option). This section will allow you to setup samba network users and the folders you'd like to share over the network. Once you've finished you should now have network access to your shared folders.

I've never had much luck with the gui samba tools, so I'll walk you through the manual samba config as well.

Open a command prompt and enter the following commands:
cd /etc/samba
touch smbpasswd
smbpasswd -a username (enter the username of the user you created)

You'll be prompted to enter the password. The username and password for the samba user should match that of the user account you created in Ubuntu.

Now let's edit the smb.conf file. Type in:
sudo vi smb.conf

The commented documentation should be enough to get you going. Please read all of the commented material (lines that begin with #).

When you get down to the bottom of the smb.conf file there will also be commented examples of how to setup samba network shares. One of the examples will have a parameter called "Allow Users". That's the one you'll want to use, because it will restrict network share access to the user account that you specify.

Once you've finished save out of the smb.conf file by hitting ZZ in vi command mode. Now enter: /etc/init.d/samba restart to restart the samba service.

Assuming you followed the smb.conf documentation correctly, you should now have a working samba server.
 
  


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
How can I connect samba client from samba server wampire Linux - Networking 2 02-13-2006 10:38 AM
Connect to Samba swan2925 Linux - Software 0 04-29-2005 12:41 AM
Samba, connect one way but not the other? firefly2442 Linux - Networking 2 02-19-2005 04:22 PM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Mandrake (Samba) Client Can't Connect To Samba Buick Linux - Networking 1 01-21-2004 01:55 PM

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

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