On Tue, Mar 1, 2011 at 1:12 PM, Armelius Cameron armeliusc@gmail.com wrote:
On Monday, February 28, 2011 10:53:34 pm inode0 wrote:
On Mon, Feb 28, 2011 at 4:34 PM, Larry Brower larry@maxqe.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 02/28/2011 07:47 AM, Alain Spineux wrote:
So I did SUDO -i, and from root as shell I tried to chown -hR * fcassia on the Desktop folder...
You must switch the star and our user name
chown -hR fcassia *
You should also avoid doing chown -R with just a * wildcard as this could possibly recursively follow ../ which would then try and change ownership on things you don't want changed.
Out of curiosity how can you configure bash to expand a simple * to include ..?
Not as explicit as it could be, but search
http://www.gnu.org/software/coreutils/manual/coreutils.txt
for "cending" to see if you can find any evidence the commands will ascend above the current directory.
Perhaps one example at that URL is useful:
# Change the owner of /u and subfiles to "root". chown -hR root /u
Note the use of the term subfiles.
regards/vaden@texoma.net