Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, I am working on using the chmod and chown commands. Here's what I have now. I have some files in my root directory that I copied over to my other username's directory. While doing this, all permissions stayed the same obviously. I was able to chown of the main directory but the subdirectories have the same permissions as before (from where they were from root)...and that's A LOT of subdirectories and files. Is there any quick way I can change permissions to all these at once rather than each folder/file separately.
BE CAREFUL WITH THIS... you can screw things up. Make sure you are changing the directory you want. You should be careful with any command that recurses down the tree.
k, thanks....and yeah I am being careful. I only copied everything from my root directory over, so the original files will still be in the right place. Most of the copies will get deleted (noticed a lot of ./ type of directories), but I just wanna get a few files from here. Still, it's given me a chance to screw around with command line which was my reason.
You'll note that most people tend to be very careful when advising others to use recursive commands. Even where the risks are light...
For example, if you accidentally chown -R 'ed someone's home directory... you could easily fix it by repeating the command with their name. But if you chown -R 'd /usr/bin ... that would ruin tons of stuff. I recommend the "Unix Horror Stories" as required reading for anyone who is going to spend any amount of time as root on a *nix box. Lot's of examples of what NOT to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.