I want mount "/usr/local/userhome" as "/home", because if use "ln -s /usr/local/userhome /home", when I use "pwd",I always get "/usr/local/userhome/.....". But a lot of script file I wrote before need "/home/....". Is there a way to solve it?
softuo 回复于:2004-01-07 01:24:42
ask advancer of Linux ad~~!
1122331 回复于:2004-01-07 01:39:12
mount --bind /usr/local/userhome /home
sakulagi 回复于:2004-01-07 08:04:03
[1] pwd好像输出的结果和你说的不一样啊?我在rh8上试验了一下你的情况,输出的是“/home”
idle2q 回复于:2004-01-07 13:07:32
Really?
[/home]$ pwd
/usr/local/userhome
[/]$ ls -l
total 163
drwxr-xr-x 2 root root 2048 Dec 13 11:35 bin
drwxr-xr-x 3 root root 1024 Dec 9 21:46 boot
drwxr-xr-x 21 root root 117760 Jan 6 21:01 dev
drwxr-xr-x 63 root root 5120 Jan 6 21:01 etc
lrwxrwxrwx 1 root root 20 Dec 9 19:11 home ->; /usr/local/userhome/
I use "fedora"
adminxp 回复于:2005-01-01 18:02:06
引用:原帖由 "1122331"]mount --bind /usr/local/userhome /home 发表:
but can not change UID or UMASK ... ,how to do it ?
|