Hi all, As I fell more comfartable using Linux, I want my mom & dad to use Linux too & dump windows forever. I have 3 computer in my house: * Pentium-III 450MHz w/ 196MB * Celeron 700MHz w/ 256MB * Pentium III 733 w/ 512MB I dedicate the P-III 450MHz as my NFS server, GateWay, Proxy, FireWall, mail, whatever. And all user can log in from either the Pentium III 733 or Celeron 700 using NFS. QQQQ: I want to know how to share data among Linux user (easy & correct way). Right now what I did is: * create 3 user (me, mom, dad) * in each user create "share" directory (ex. /home/me/share) * then I log in as a root, create a sym-link to every one I want to share & put the sym-link in share (/home/me/share, /home/mom/share, /home/dad/share). Is there a more **CORRECT** & easy way of doing this??? I don't want to mess with FTP and so on, because my mom & dad is on their way to 60. And doing FTP things could scare him. All computer will use SuSE 7.3Pro
El mié, 23-01-2002 a las 11:54, Isen Kusima escribió: Hi all, As I fell more comfartable using Linux, I want my mom & dad to use Linux too & dump windows forever. I have 3 computer in my house: * Pentium-III 450MHz w/ 196MB * Celeron 700MHz w/ 256MB * Pentium III 733 w/ 512MB I dedicate the P-III 450MHz as my NFS server, GateWay, Proxy, FireWall, mail, whatever. And all user can log in from either the Pentium III 733 or Celeron 700 using NFS. QQQQ: I want to know how to share data among Linux user (easy & correct way). Right now what I did is: * create 3 user (me, mom, dad) * in each user create "share" directory (ex. /home/me/share) * then I log in as a root, create a sym-link to every one I want to share & put the sym-link in share (/home/me/share, /home/mom/share, /home/dad/share). Is there a more **CORRECT** & easy way of doing this??? I don't want to mess with FTP and so on, because my mom & dad is on their way to 60. And doing FTP things could scare him. All computer will use SuSE 7.3Pro I use /usr/local/ftp/pub as share directory for all my users..., using ftp. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com ALEJANDRO ORTEGA PÁEZ - Adm. Sistemas - aortega@nostracom.com
On Wed, Jan 23, 2002 at 05:54:23PM +0700, cycnus@cbn.net.id wrote:
As I fell more comfartable using Linux, I want my mom & dad to use Linux too & dump windows forever.
Good idea :-)
QQQQ: I want to know how to share data among Linux user (easy & correct way). Right now what I did is:
* create 3 user (me, mom, dad) * in each user create "share" directory (ex. /home/me/share) * then I log in as a root, create a sym-link to every one I want to share & put the sym-link in share (/home/me/share, /home/mom/share, /home/dad/share).
Is there a more **CORRECT** & easy way of doing this??? I don't want to mess with FTP and so on, because my mom & dad is on their way to 60. And doing FTP things could scare him.
A more normal way of doing it would be to have your NFS server contain all the home directories, and export /home to all machines. You could then use NIS to distribute the passwd database, or just copy the file manually. This leaves each person having only one home directory, which is much cleaner. -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk
On Wednesday 23 January 2002 19:11, Dave Smith wrote:
On Wed, Jan 23, 2002 at 05:54:23PM +0700, cycnus@cbn.net.id wrote:
QQQQ: I want to know how to share data among Linux user (easy & correct way). Right now what I did is:
* create 3 user (me, mom, dad) * in each user create "share" directory (ex. /home/me/share) * then I log in as a root, create a sym-link to every one I want to share & put the sym-link in share (/home/me/share, /home/mom/share, /home/dad/share).
Is there a more **CORRECT** & easy way of doing this??? I don't want to mess with FTP and so on, because my mom & dad is on their way to 60. And doing FTP things could scare him.
A more normal way of doing it would be to have your NFS server contain all the home directories, and export /home to all machines. You could then use NIS to distribute the passwd database, or just copy the file manually.
This leaves each person having only one home directory, which is much cleaner.
I have succesfully install the NIS & NFS server. Each home directroy for each user & user can log in from any computer with the same password. But there were some files I want to be share-able. ex. Family Photo album. Right now my solution is to create a share folder: ex. /home/me/pic <--- my picture to be share /home/mom/pic <--- my mom's pic to be share then create /home/me/share and put the /home/mom/pic symlink here then create /home/mom/share and put the /home/me/pic symlink here I want a simpler, better way to do it. thank you.
On Wed, Jan 23, 2002 at 08:25:55PM +0700, cycnus@cbn.net.id wrote:
I have succesfully install the NIS & NFS server. Each home directroy for each user & user can log in from any computer with the same password. But there were some files I want to be share-able. ex. Family Photo album.
Right now my solution is to create a share folder: ex. /home/me/pic <--- my picture to be share /home/mom/pic <--- my mom's pic to be share
then create /home/me/share and put the /home/mom/pic symlink here then create /home/mom/share and put the /home/me/pic symlink here
I want a simpler, better way to do it.
OK, I'm a little confused as to what you want. If you want a single directory, which everyone is able to access, then I would suggest that you create that directory on your NFS server (outside of anyone's home area - maybe you could create something like /pics, or if you wanted to share different types of things, you might want to create a small hierarchy - /shared/pics, /shared/docs, /shared/recipes, etc... Once you'd done that, you could mount it in the same place on everyone's machine, and ensure that you had the correct UNIX permissions (group/world writeable as appropriate), then everyone would be able to use it. If you want each person to have their own area in which they place documents they want other people to be able to see, then you could create a 'shared' directory under everyone's home directory; under that directory would be a link to everyone else's shared area, plus their own shared directory. For example: /home/bob/shared/bob: directory containing stuff bob wants to share /bill --> /home/bill/shared/bill /fred --> /home/jane/shared/fred /home/fred/shared/bill: directory containing stuff bill wants to share /bob --> /home/bob/shared/bob /fred --> /home/fred/shared/fred /home/bill/shared/fred: directory containing stuff fred wants to share /bob --> /home/bob/shared/bob /bill --> /home/bill/shared/bill Alternatively, you could do away with the links altogether, and just let each person have their own /home/<user>/shared directory with appropriate permissions. This would be my personal choice out of the two alternatives. Of course, it's up to you... -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk
On Wednesday 23 January 2002 21:05, Dave Smith wrote:
OK, I'm a little confused as to what you want.
If you want a single directory, which everyone is able to access, then I would suggest that you create that directory on your NFS server (outside of anyone's home area - maybe you could create something like /pics, or if you wanted to share different types of things, you might want to create a small hierarchy - /shared/pics, /shared/docs, /shared/recipes, etc... Once you'd done that, you could mount it in the same place on everyone's machine, and ensure that you had the correct UNIX permissions (group/world writeable as appropriate), then everyone would be able to use it.
If you want each person to have their own area in which they place documents they want other people to be able to see, then you could create a 'shared' directory under everyone's home directory; under that directory would be a link to everyone else's shared area, plus their own shared directory.
For example:
/home/bob/shared/bob: directory containing stuff bob wants to share /bill --> /home/bill/shared/bill /fred --> /home/jane/shared/fred
/home/fred/shared/bill: directory containing stuff bill wants to share /bob --> /home/bob/shared/bob /fred --> /home/fred/shared/fred
/home/bill/shared/fred: directory containing stuff fred wants to share /bob --> /home/bob/shared/bob /bill --> /home/bill/shared/bill
Alternatively, you could do away with the links altogether, and just let each person have their own /home/<user>/shared directory with appropriate permissions. This would be my personal choice out of the two alternatives.
Of course, it's up to you...
thank you for answering me ;)) I first thought my way is a bad hack, and there were a better way. You just convince me it's not wrong ;))) After thinking for a while, I will combine the two method. I'm using Anders Johansson & Dave Smith idea of /home/share/ with nobody:users to share file that all have the same privilage eg. /home/share/pic/familypic and this to share that others only have the read permision but author got write permision: /home/me/share/mymp3 /home/mom/share/recipes /home/dad/share/doc Thank you for all of you answering my question.
Hi, On Wednesday 23 January 2002 11.54, Isen Kusima wrote:
Is there a more **CORRECT** & easy way of doing this???
Your way works. It doesn't get any more correct than that :) But seriously, your way seems to me to be the most logical way of doing it. Three people want to have a common directory, and symlinking it into each users directory is both reasonable, logical and efficient. Is there a problem you've experienced? Why do you ask your question? regards Anders
On Wednesday 23 January 2002 19:25, Anders Johansson wrote:
Hi,
Your way works. It doesn't get any more correct than that :)
But seriously, your way seems to me to be the most logical way of doing it. Three people want to have a common directory, and symlinking it into each users directory is both reasonable, logical and efficient.
Is there a problem you've experienced? Why do you ask your question?
There's no problem. I just want to know what other using, and maybe I miss a better way of doing it.
On Wed, 23 Jan 2002, Isen Kusima wrote: ik> On Wednesday 23 January 2002 19:25, Anders Johansson wrote: ik> > Hi, ik> > ik> > Your way works. It doesn't get any more correct than that :) ik> > ik> > But seriously, your way seems to me to be the most logical way of doing it. ik> > Three people want to have a common directory, and symlinking it into each ik> > users directory is both reasonable, logical and efficient. ik> > ik> > Is there a problem you've experienced? Why do you ask your question? ik> > ik> ik> There's no problem. ik> I just want to know what other using, and maybe I miss a better way of doing ik> it. ik> ik> autofs You already have NIS installed, so finish it up with autofs. Install the package from the network series (I believe) and modify the Makefile in the YP directory (/var/yp/Makefile) appropriately. You'll want the following at least: auto.master auto.misc auto.home by default you should have an auto.master and an auto.misc already so I'll show you how to configure the auto.home and you can verify that the other two have proper entries within the Makefile. In target all: all: auto.master auto.misc auto.home you should find the 'all:' target just above the following warning within the Makefile ######################################################################## # # # DON'T EDIT ANYTHING BELOW IF YOU DON'T KNOW WHAT YOU ARE DOING !!! # # # ######################################################################## after the 'all:' target, add the following: AUTO_HOME = $(YPSRCDIR)/auto.home auto.home: $(AUTO_HOME) $(YPDIR)/Makefile @echo "Updating $@..." -@sed -e "/^#/d" -e s/#.*$$// $(AUTO_HOME) | $(DBLOAD) \ -i $(AUTO_HOME) -o $(YPMAPDIR)/$@ - $@ -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@ After modifying the Makefile, you will need to run 'make' so that the correct database files are generated and NIS can properly do it's thing. When make is complete, be sure to modify /etc/auto.master with the following addition /home auto.home -nosuid,noquota and create a /etc/auto.home with the following you -rw,intr,nosuid,noquota servername:/home/you mom -rw,intr,nosuid,noquota servername:/home/mom dad -rw,intr,nosuid,noquota servername:/home/dad and for a publiclly shared directory (a directory all of you can access) add the following to /etc/auto.misc public -rw,intr,nosuid,noquota servername:/public make sure you correctly modify your exports file (/etc/exports) to correctly deploy the filesystems or paths you wish to export to your workstations like so /home *.linux.com(rw) /public *.linux.com(rw) the *.linux.com is your domain address for your personal network. You'll need to relaunch ypserv with the following 'rcypserv restart' so that changes can take affect and NIS clients will be able to query and receive the modifications to the NIS server. At this point you should be able to restart ypbind on the clients if you properly configured NIS with 'Configure YP Client' under YaST or YaST2. Hopefully I havn't left anything out, if so, please write back with anything that happens or doesn't happen and I can help you through it. ik> ik> -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.2+ - Kernel 2.4.4 The goal of science is to build better mousetraps. The goal of nature is to build better mice.
On Wednesday 23 January 2002 11.54, Isen Kusima wrote:
* create 3 user (me, mom, dad) * in each user create "share" directory (ex. /home/me/share) * then I log in as a root, create a sym-link to every one I want to share & put the sym-link in share (/home/me/share, /home/mom/share, /home/dad/share).
Oops, I misread this. One easier way of managing a shared directory would be mkdir /home/share chown nobody.users /home/share chmod 070 /home/share ln -s /home/share /home/me/share ln -s /home/share /home/mom/share ln -s /home/share /home/dad/share This way, all three will have access to the same shared directory from within their own home dir. If I've misunderstood a second time, give a shout :) //Anders
On Wednesday 23 January 2002 19:32, Anders Johansson wrote:
On Wednesday 23 January 2002 11.54, Isen Kusima wrote:
* create 3 user (me, mom, dad) * in each user create "share" directory (ex. /home/me/share) * then I log in as a root, create a sym-link to every one I want to share & put the sym-link in share (/home/me/share, /home/mom/share, /home/dad/share).
Oops, I misread this.
One easier way of managing a shared directory would be
mkdir /home/share chown nobody.users /home/share chmod 070 /home/share ln -s /home/share /home/me/share ln -s /home/share /home/mom/share ln -s /home/share /home/dad/share
This way, all three will have access to the same shared directory from within their own home dir.
If I've misunderstood a second time, give a shout :)
I think your solution looks more neat than mine. I love it. Thank you.
participants (5)
-
Alejandro Ortega Páez
-
Anders Johansson
-
Dave Smith
-
Isen Kusima
-
S.Toms