Re: [Samba] Re: Samba public directory on FreeBSD
On Thu, 2004-09-23 at 13:41, W. D. wrote: > > Thanks for the info. > > I looked into this a little closer. In 'FreeBSD Unleashed', on page > 38 it says: "/home This is where the users' home directories are > located. It is often located under the /usr partition. If you are > going to have a lot of users, and you expect them to have a lot of > files, you might want to put /home on its own partition, or possibly > even give /home an entire disk." > > In 'The Complete FreeBSD' (4th edition), on page 70: "Use the rest > of the space on disk for a /home file system, as long as it's > possible to back it up on a single tape. Otherwise, make multiple file > systems. /home is the normal directory for user files." > > In the online handbook, > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html, > Table 2-2: "/usr Rest of disk All your other files will typically be stored in > /usr and its subdirectories." > > Alrighty, then. I am confused. On the 3 boxes that I just installed > FreeBSD 4.9 on, none of them even have a /home or a /usr/home directory. > So, there certainly isn't a /home partition. Is /home created as its > own slice in 5.x? FreeBSD allows you a lot of flexibility, including how you lay out your disks. The lack of agreement is good. > These boxes have 80 GB hard drives and have the majority of that > capacity contained in /usr. The way I set up a system, / and /usr do not change much. /var and /home are where the action is. And I link /home to /usr/home, so that /home/aUserName is the same as /usr/home/aUserName. > > Based on all this advice and research, I think I will create a new > directory under /usr called /home. Under this, I'll create > /samba/public (full path: /usr/home/samba/public). > > Any objections, or comments? Yes, go ahead and set this up. Just keep in mind that at some point in the future you might want to redesign you layout -- when you set up your next server :-) Gary Dunn Honolulu ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [Samba] Re: Samba public directory on FreeBSD
> Thanks for the info. > > In 'The Complete FreeBSD' (4th edition), on page 70: "Use the rest > of the space on disk for a /home file system, as long as it's > possible to back it up on a single tape. Otherwise, make multiple file > systems. /home is the normal directory for user files." > > In the online handbook, > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html, > Table 2-2: "/usr Rest of disk All your other files will typically be stored in > /usr and its subdirectories." > > Alrighty, then. I am confused. On the 3 boxes that I just installed > FreeBSD 4.9 on, none of them even have a /home or a /usr/home directory. > So, there certainly isn't a /home partition. Is /home created as its > own slice in 5.x? No, do a 'll -d /home' and it show you have you're home dictory is. Mine (5.2) is in /usr/home (the default). I usaly skip the cration of /tmp and create a /disk/ and have this kind of stuff there. (web, ftp, samba, temp (tmp, ports-work, ports-dist, obj), ect). I name it disk so that it feels more natural when I discover I need antoher thing on it. > These boxes have 80 GB hard drives and have the majority of that > capacity contained in /usr. > > Based on all this advice and research, I think I will create a new > directory under /usr called /home. Under this, I'll create > /samba/public (full path: /usr/home/samba/public). > > Any objections, or comments? Be sure to check with du -sh /usr how much you use. I have X and everything else and need at least 3.7G (of course I do not have the distfiles and obj directories on that. And have doubled this to a total of 8.2G for future grouwth. You can set a qouta for disk useage. This is native in FreeBSD (may need to compile a special kernel) and there is also a opion in Samba. I never used the latter, Also you could be able to mount /usr by NFS of a other box while you change sizes. This way you have acces to tools like vi and such. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/FreeBSD/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [Samba] Re: Samba public directory on FreeBSD
At 14:26 9/23/2004, [EMAIL PROTECTED], wrote: >> At 13:20 9/23/2004, [EMAIL PROTECTED] wrote: >> >> What is recommended for a public, 'free-for-all', >> >> anyone can read or write directory on FreeBSD? >> >> >> >> What are the reasons for preferring one place >> >> over another? >> >> >> >> Would these work? >> >> >> >> /usr/local/share/sambapublic/ >> >> /usr/share/sambapublic/ >> >> /home/sambapublic/ >> > >> >I recommend a separate partition, so that when it eventually gets filled up >> >-- and these things always do -- your system will not be adversly affected. >> >You can mount the partition wherever you want. In your three examples, >> >"sambapublic" could be a file system mounted on /usr/local/share, >> >/usr/share, or /home. >> >> Thanks for the info. I just wanted to stick with the FreeBSD >> standard if there was one. >> >> How can I add a new partition? Can that be done after the OS >> and data are on the drive? What program? What would it be >> called? > >Not practical unless you install an additional hard drive. Sticking with >the drive you have, you would need to backup your data and reinstall >FreeBSD from scratch. The extra partition would be created using the >Disklable Editor, a sibling to / and /usr and /var and /home. > >That may be more work than you want to do right now. Yes, now that I've got the OS and programs loaded. >In that case, if you >want to try it out, use either the home partition or the var partition. We >could probably spark a lively debate here as to which is better :-) > >Bottom line: go ahead and set up samba, to learn how it works. If you want >to use it in production (serious, bullit-proof) create that special partition. > >Gary Dunn >Honolulu Thanks for the info. I looked into this a little closer. In 'FreeBSD Unleashed', on page 38 it says: "/home This is where the users' home directories are located. It is often located under the /usr partition. If you are going to have a lot of users, and you expect them to have a lot of files, you might want to put /home on its own partition, or possibly even give /home an entire disk." In 'The Complete FreeBSD' (4th edition), on page 70: "Use the rest of the space on disk for a /home file system, as long as it's possible to back it up on a single tape. Otherwise, make multiple file systems. /home is the normal directory for user files." In the online handbook, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html, Table 2-2: "/usr Rest of disk All your other files will typically be stored in /usr and its subdirectories." Alrighty, then. I am confused. On the 3 boxes that I just installed FreeBSD 4.9 on, none of them even have a /home or a /usr/home directory. So, there certainly isn't a /home partition. Is /home created as its own slice in 5.x? These boxes have 80 GB hard drives and have the majority of that capacity contained in /usr. Based on all this advice and research, I think I will create a new directory under /usr called /home. Under this, I'll create /samba/public (full path: /usr/home/samba/public). Any objections, or comments? Start Here to Find It Fast! -> http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [Samba] Re: Samba public directory on FreeBSD
"W. D." <[EMAIL PROTECTED]> writes: > How can I add a new partition? Can that be done after the OS > and data are on the drive? What program? What would it be > called? You need unallocated space to build a new disk partition, but you could always use a "pseudo" disk. I do this to provide a Samba share to my home network, limited to 100MB. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [Samba] Re: Samba public directory on FreeBSD
> At 13:20 9/23/2004, [EMAIL PROTECTED] wrote: > >> What is recommended for a public, 'free-for-all', > >> anyone can read or write directory on FreeBSD? > >> > >> What are the reasons for preferring one place > >> over another? > >> > >> Would these work? > >> > >> /usr/local/share/sambapublic/ > >> /usr/share/sambapublic/ > >> /home/sambapublic/ > > > >I recommend a separate partition, so that when it eventually gets filled up > >-- and these things always do -- your system will not be adversly affected. > >You can mount the partition wherever you want. In your three examples, > >"sambapublic" could be a file system mounted on /usr/local/share, > >/usr/share, or /home. > > Thanks for the info. I just wanted to stick with the FreeBSD > standard if there was one. > > How can I add a new partition? Can that be done after the OS > and data are on the drive? What program? What would it be > called? Not practical unless you install an additional hard drive. Sticking with the drive you have, you would need to backup your data and reinstall FreeBSD from scratch. The extra partition would be created using the Disklable Editor, a sibling to / and /usr and /var and /home. That may be more work than you want to do right now. In that cae, if you want to try it out, use either the home partician or the var partician. We could probably spark a lively debate here as to which is better :-) Bottom line: go ahead and set up samba, to learn how it works. If you want to use it in production (serious, bullit-proof) create that special partition. Gary Dunn Honolulu ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [Samba] Re: Samba public directory on FreeBSD
At 13:20 9/23/2004, [EMAIL PROTECTED] wrote: >> What is recommended for a public, 'free-for-all', >> anyone can read or write directory on FreeBSD? >> >> What are the reasons for preferring one place >> over another? >> >> Would these work? >> >> /usr/local/share/sambapublic/ >> /usr/share/sambapublic/ >> /home/sambapublic/ > >I recommend a separate partition, so that when it eventually gets filled up >-- and these things always do -- your system will not be adversly affected. >You can mount the partition wherever you want. In your three examples, >"sambapublic" could be a file system mounted on /usr/local/share, >/usr/share, or /home. Thanks for the info. I just wanted to stick with the FreeBSD standard if there was one. How can I add a new partition? Can that be done after the OS and data are on the drive? What program? What would it be called? >What we are talking about here is the OS view. To the Windows user what >counts is the share name. On server fattoad, any one of these directories >could be shared out as "pub" (or whatever name you like). The windows users >will not see the OS pathname. Understood. That's a neato feature of Samba. > >Gary Dunn >Honolulu > > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba Start Here to Find It Fast! -> http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"