Jump to content

[NFS/Samba] Sharing outside of /home..


Guest Danomatic
 Share

Recommended Posts

Guest Danomatic

I've got NFS/Samba file sharing working just fine between 2 MDK 10.0 boxes through a LinkSys router. Sharing files from either box in the /home directory works great.

 

What I'd like to do is to allocate/share an entire drive from one box to another. Perhaps I've overlooked something simple or I'm just an idiot. So far MDK 10.0 doesn't like to share outside the /home partition. Where can I change this? You'd think that it'd just be a simple change to a .conf file ( 'cause MDK Wizards don't allow sharing outside /home).

 

I assume I would export something like /mnt/hdb1. Or perhaps export the device location itself ( something like /dev/ide/bus0/...etc. ). But so far no luck.

 

Any pointers would be appreciated.

Edited by Danomatic
Link to comment
Share on other sites

Hi there

 

Samba's configuration files are found in /etc/samba/

 

The main conf file is smb.conf. You would like to share your entire drive? :screwy: just share root (/) -- not the other root (/root).

 

Like So (Warning: This shares all files and makes things writeable if the root password is provided):

 

vi /etc/samba/smb.conf
### You're in VI, use keyboard arrows to move about, [insert] to insert
Add the following to the file
[everything]
  comment = everything
  path = /
  public = yes
  writable = yes
  printable = no
### [esc] wq!   to write and quit

 

restart samba, mount from the other machine like so

mkdir /tmp/machine1
mount -smbfs //machine1/everything /tmp/machine1

 

Regards,

 

Armond

Edited by armondf
Link to comment
Share on other sites

Samba/NFS ???

 

They are two very different ways of network file-sharing, maybe I'm not reading your post right...

 

Anyway, armondf is right about Samba, for NFS checkout /etc/exports - you can add shares to your NFS server from there. Also do

$ man exports

To make sure you do 'em right ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...