clearing space
Marty Landman
MLandman at face2interface.com
Fri Jan 7 06:24:27 PST 2005
At 08:55 AM 1/7/2005, Joshua Lokken wrote:
>On Fri, 07 Jan 2005 13:05:42 +0000, Peter Risdon
>
> > How about:
> >
> > #mv /sbin /usr/sbin
> > #ln -s /usr/sbin /sbin
> > #mv /root /usr/root
> > #ln -s /usr/root /root
I've run into a little bit of trouble here. I ssh into my fbsd box as user
marty in group wheel, then su - as needed.
As you'll see below, I wasn't able to set up the link for /root and now
can't su to root either.
++++++++++++++++++++++++++++++++++++++++++++++++++++
# mv /sbin /usr/sbin
# ln -s /usr/sbin /sbin
# mv /root /usr/root
# ls -s /usr/root /root
ls: /root: No such file or directory
/usr/root:
total 1294
2 .cpan 2 .profile 14 mbox
2 .cshrc 2 .rnd 2 msg.txt
2 .fetchmailrc 2 .ssh 0 msg.txt~
4 .history 2 exec 4 nmap-3.50
2 .klogin 2 ipfw.ac.list 1248 nmap-3.50.tar.bz2
2 .login 2 kernels
# ls -l /
total 10857
-rw-r--r-- 1 root wheel 802 Apr 3 2003 .cshrc
-rw-r--r-- 1 root wheel 251 Apr 3 2003 .profile
-r--r--r-- 1 root wheel 4735 Apr 3 2003 COPYRIGHT
drwxr-xr-x 2 root wheel 1024 Feb 9 2004 bin
drwxr-xr-x 3 root wheel 512 Feb 9 2004 boot
drwxr-xr-x 2 root wheel 512 Feb 9 2004 cdrom
lrwxr-xr-x 1 root wheel 10 Feb 9 2004 compat -> usr/compat
drwxr-xr-x 3 root wheel 17920 Feb 16 2004 dev
drwxr-xr-x 2 root wheel 512 Feb 9 2004 dist
drwxr-xr-x 16 root wheel 2048 Jun 16 2004 etc
lrwxrwxrwx 1 root wheel 9 Feb 9 2004 home -> /usr/home
-r-xr-xr-x 1 root wheel 2736474 Feb 18 2004 kernel
-r-xr-xr-x 1 root wheel 4122347 Apr 3 2003 kernel.GENERIC
-r-xr-xr-x 1 root wheel 4122347 Apr 3 2003 kernel.old
drwxr-xr-x 3 root wheel 512 Feb 9 2004 mnt
drwxr-xr-x 2 root wheel 4096 Feb 18 2004 modules
drwxr-xr-x 2 root wheel 4096 Feb 18 2004 modules.old
dr-xr-xr-x 1 root wheel 512 Jan 7 09:13 proc
lrwxr-xr-x 1 root wheel 9 Jan 7 09:11 sbin -> /usr/sbin
drwxr-xr-x 5 root wheel 1024 Feb 9 2004 stand
lrwxr-xr-x 1 root wheel 12 Feb 18 2004 sys -> /usr/src/sys
drwxrwxrwt 9 root wheel 1024 Jan 7 03:05 tmp
drwxr-xr-x 19 root wheel 512 Jan 7 09:12 usr
drwxr-xr-x 21 root wheel 512 Mar 1 2004 var
# exit
logout
%su -
Password:
su: no directory
%id
uid=1000(marty) gid=0(wheel) groups=0(wheel), 31(guest)
%ls -l /usr
total 52
---------- 1 root wheel 111 Dec 31 1969 @LongLink
drwxr-xr-x 3 root wheel 512 Feb 16 2004 X11R6
drwxr-xr-x 2 root wheel 7168 Feb 18 2004 bin
drwxr-xr-x 3 root wheel 512 Feb 9 2004 compat
drwxr-xr-x 3 root wheel 512 Feb 9 2004 games
drwxr-xr-x 9 root wheel 512 Jun 16 2004 guide
drwxr-xr-x 6 root wheel 512 Feb 9 2004 home
drwxr-xr-x 41 root wheel 4096 Feb 9 2004 include
drwxr-xr-x 4 root wheel 6144 Apr 3 2003 lib
drwxr-xr-x 9 root wheel 512 Apr 3 2003 libdata
drwxr-xr-x 8 root wheel 1536 Feb 9 2004 libexec
drwxr-xr-x 16 root wheel 512 Feb 29 2004 local
drwxr-xr-x 2 root wheel 512 Feb 9 2004 obj
drwxr-xr-x 60 root wheel 1536 Feb 16 2004 ports
drwxr-xr-x 7 root wheel 512 Jan 7 07:42 root
drwxr-xr-x 3 root wheel 4608 Jan 7 09:11 sbin
drwxr-xr-x 27 root wheel 512 Apr 3 2003 share
drwxr-xr-x 7 root wheel 512 Feb 18 2004 src
%ln -s /usr/root /root
ln: /root: Permission denied
%su -
Password:
su: no directory
%
++++++++++++++++++++++++++++++++++++++++++++++++++++
>Or just stop logging in as root, setup a user account for admin tasks, and
>learn to use sudo ;)
That's next on the list, once I get use of root back so I can install the
sudo port (this was a mini-iso install).
Thanks, this started as (I'd thought) very minor and is becoming
consciousness expanding. Great end of the week project.
Marty
Marty Landman, Face 2 Interface Inc. 845-679-9387
Search & Sort Easily: http://face2interface.com/Products/FormATable.shtml
Web Installed Formmail: http://face2interface.com/formINSTal
More information about the freebsd-questions
mailing list