LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-22-2004, 12:07 PM   #1
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
How do I go about setting a samba server on Linux?


I know you can access windows drives using samba over a network, but what about windows to linux (or linux to linux over a network drive)? How do I make a Linux filesystem a share (using windows filesystems of course unless using others are possible)?

Also I don't seem to get the idea of UID's for fstab for samba and such.
 
Old 02-22-2004, 01:00 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to learn how to configure Samba in order to create shares on Linux.
You should consider taking a look at Using Samba, 2nd Edition from O'Reilly & Associates. This book is available for free.
http://www.oreilly.com/openbook/

To connect to a windows share from Linux, you can use the smbclient command.
Syntax:
Code:
smbclient //computer_name/share -U username
The UID is a unique number associated to a user. You can get a list for all UID and GID (group) on your Linux system from the /etc/passwd file.
Code:
more /etc/passwd
The third column is the UID and the fourth column is the GID.

For example, if you want to mount a windows share, you would use the following syntax.
Code:
mount -t smbfs -o uid=500,gid=100,username=natalinasmpf //computer/test /mnt/test
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a samba server Tremendo Linux - Newbie 2 07-16-2004 11:47 AM
How to use Webmin to setting the SAMBA Server?! toniwong Linux - Networking 1 04-29-2004 09:32 AM
RH9...Where did my Samba server setting go? naloxone Red Hat 1 09-17-2003 11:45 AM
Problems setting up a samba server colpaarm Linux - Software 3 07-25-2003 07:35 AM
Setting up a Samba network Print Server sancho5 Linux - General 1 02-01-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:30 AM.

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