Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Share Folder
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dexter2004
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 123

PostPosted: Sat Jul 24, 2004 5:04 pm    Post subject: Share Folder Reply with quote

How can i share a folder in the network??

thanks
Dex
Back to top
View user's profile Send private message
radonsg
Apprentice
Apprentice


Joined: 26 Jun 2004
Posts: 257
Location: Singapore

PostPosted: Sat Jul 24, 2004 5:30 pm    Post subject: Reply with quote

can u be more precise. Share a folder, in wat? NFS? Samba? or wat?
_________________
Athlon64 3000+ on a MSI Neo2 Platinum (nVidia nForce3)
1 Sata Hitachi (HGST) 7K250
1 Sata Samsung SpinPoint
2 x 512MB TwinMos DDR400 Dual Channel
Geforce 5200
Back to top
View user's profile Send private message
oiper
Guru
Guru


Joined: 01 May 2003
Posts: 316
Location: Alabama, US

PostPosted: Sat Jul 24, 2004 5:39 pm    Post subject: well Reply with quote

Do you want it accessible by other linux machines or Windows machines. (or Macs, but I just realized that I'm not sure what network shares a Mac can see! :oops: )

So, for other linux machines, you are going to need to
Code:
emerge nfs-utils

and then
Code:
man exports

so that you can read about how to edit your /etc/exports file for sharing. An example of sharing to all ip's from essentially 192.168.2.0 to 192.168.2.254 is
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/storage/videos 192.168.2.0/255.255.255.0(ro,no_root_squash,sync)

That gives read only access to anyone with an ip in that range that is running nfs. All machines accessing nfs need nfs-utils also. I've not found nfs to be browsable yet without mounting the share, so, to use it, you'll need to mount the share either by command:
Code:
mount -t nfs bobsComuter:/storage/videos /mnt/somedir

or in your fstab
Code:
 bobsComputer:/storage/videos   /mnt/somedir    nfs   defaults 0 0


For windows sharing, you use samba. And well, there is plenty of talk about that on here. After emerging samba, here is a small example of a share in /etc/samba/smb.conf:
Code:
[global]
map to guest = Bad User
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
security = share
server string = Feel free to grab anything you see here.

[Shows]
comment = Shows
path = /storage/videos/
guest only = yes
writable = yes


So, I'm not sure what all you know about this. I don't know a lot, but I run both types of shares and run them for 2 networks. Just don't forget to add samba and nfs as rc services. ie. rc-update add nfs default, and so on. :)
_________________
www.bearscanfly.org - Because hiking is cool
Back to top
View user's profile Send private message
Dexter2004
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 123

PostPosted: Sat Jul 24, 2004 5:52 pm    Post subject: Reply with quote

thanks for the help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum