Change ownership of an entire directory.
Installed Sidux over Lenny
Sidux didn't want to take my usual username, because a folder with that name existed in my home directory. So, I just mounted the home partition and changed the name of my home directory from shay to shay1. Don't know what that did or didn't do permission wise to the files in my old home directory, but I've got a few unowned files floating around my home directory anyway that have been dragged in from old harddrives and such. So, how do I "give" all of the files to user shay? |
To change the ownerships of all files in a directory and it's subdirectories, do:
Code:
chown -R shay * Code:
chown -R shay:users * |
Quote:
|
dot files are not special types of files in linux. They are just hidden from `ls` without the -a option. Try `ls` and `ls -a` in a directory.
OK |
All times are GMT -5. The time now is 09:16 AM. |