Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2008 10:55:45 -0600
From:      Derek Ragona <derek@computinginnovations.com>
To:        deepcore <bo@visfeldt.dk>, freebsd-questions@freebsd.org
Subject:   Re: Freebsd based server lacking chown command, where to get it.
Message-ID:  <6.0.0.22.2.20080212105421.024ab6b0@mail.computinginnovations.com>
In-Reply-To: <15435319.post@talk.nabble.com>
References:  <15427115.post@talk.nabble.com> <20080212091325.Q2271@wojtek.tensor.gdynia.pl> <15435319.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:49 AM 2/12/2008, deepcore wrote:




> > <chown is in /usr/sbin/>
> >
>
>ok. I get that, and i found it
>I can, however not execute it.
>whenever i go to the usr/sbin and type "chown" i get
>chown: Command not found.
>
>i find this pretty strange as ls -l shows:
>-r-xr-xr-x 1 root wheel 6688 Jan 12 2007 chown
>
>shouldn't this mean that the file is excecutable by all?
>even tried to switch to root first (just executing su)
>
>...
>What i am more specifically trying to do is change the ownership of all the
>directories and files on a specific disk, mounted as /mnt/moviedisk, to the
>user that is supposed to own them.
>
>Any surgestions? What am i doing wrong as i cannot execute the chown
>command?

Sounds like your path doesn't include /usr/sbin, or /usr/sbin or /usr is 
mounted without exec.

Have you tried executing with the complete path:
/usr/sbin/chown

         -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080212105421.024ab6b0>