Changing userrights for many files & folders at once SOLVED

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Changing userrights for many files & folders at once SOLVED

Postby hamburn on Thu May 28, 2009 6:28 am

after installing Gloria, I have a problem. I have backuped the files and folders of my home folder of Felicia on an external hard drive. When I tried to copy them in my home folder of Gloria I couldn't do it as user hamburn, but only as root. Now they all belong to root, even if they belong to user hamburn on the external drive. I can see there is an ability to change the owner-rights of the folders, but it don't work for the the files inside, too. I have tried the methods I know to change that, but the only method that works is by doing that file by file, even it looks as if there is an ability in properties of the folders. It doesn't work..
Nearly seventy folders with nearly six thousand files, it will be hard work to do so.

Last chance I can see is, to change the owner of my files by the command line.

Can somebody tell me the commands I need to get my folders and files back, please.


thanks
H.
Last edited by hamburn on Thu May 28, 2009 10:22 am, edited 1 time in total.
for linux to be successful on the desktop for normal users, normal users have to feel comfortable with it.
The interesting users are your mother, your neighbor. Those are the people that will decide whether or not linux is accepted on the desktop.
M.B.
hamburn
Level 2
Level 2
 
Posts: 64
Joined: Tue May 27, 2008 5:48 am

Linux Mint is funded by ads and donations.
 

Re: Changing userrights for many files and folders at once

Postby Fred on Thu May 28, 2009 8:50 am

hamburn,

The command you are looking for is:

sudo chown -R fred:fred /home/fred/Data

Correct for your user_name of course. Also, the last part of the above command is the path to the folder tree you wish to change. It depends upon where the partition is mounted as to what it might be. It might be in /mnt, /media, your /home, or elsewhere.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Changing userrights for many files and folders at once

Postby hamburn on Thu May 28, 2009 10:02 am

Fred thank you very much. That command has done it's magical work ;-). You saved my #ss. There are ten people, I have persuaded to use Mint instead of that Redmond OS. Now I can change their computers happily to it.

Thanks again

H.
for linux to be successful on the desktop for normal users, normal users have to feel comfortable with it.
The interesting users are your mother, your neighbor. Those are the people that will decide whether or not linux is accepted on the desktop.
M.B.
hamburn
Level 2
Level 2
 
Posts: 64
Joined: Tue May 27, 2008 5:48 am

Re: Changing userrights for many files & folders at once SOLVED

Postby emorrp1 on Thu May 28, 2009 10:52 am

As usual the command-line is the easiest option, however in this specific case there is a way to do it graphically too (for anyone else with the same problem):
Right Click --> Properties --> Permissions --> Apply permissions to enclosed files (or something like that)
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: Changing userrights for many files & folders at once SOLVED

Postby hamburn on Thu May 28, 2009 2:37 pm

Right Click --> Properties --> Permissions --> Apply permissions to enclosed files (or something like that)



As I had mentioned in my first posting: the graphically way don't work in Gloria for me. Being not a friend of the command line, I had used the graphically way since mint 4, and so I tried it now again. But it looks like it is disabled by default in Gloria.

But thanks for your answer.

H.
for linux to be successful on the desktop for normal users, normal users have to feel comfortable with it.
The interesting users are your mother, your neighbor. Those are the people that will decide whether or not linux is accepted on the desktop.
M.B.
hamburn
Level 2
Level 2
 
Posts: 64
Joined: Tue May 27, 2008 5:48 am

Re: Changing userrights for many files & folders at once SOLVED

Postby emorrp1 on Thu May 28, 2009 6:51 pm

hmmmm, that's strange, I just tested it now, it works fine for me in gloria.
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: Changing userrights for many files & folders at once SOLVED

Postby Fred on Thu May 28, 2009 7:26 pm

hamburn,

Don't underestimate the simplicity and flexibility of the CLI in Linux. It is a powerful feature in Linux that isn't even remotely comparable to the CLI in Windows. In Windows it is seldom used because it is so clunky and crippled.

Just remember the old saying; "Anything you know is easy, anything you don't know is hard."


@emorrp1,

Look at the thread below. :-)

viewtopic.php?f=90&t=26371

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Changing userrights for many files & folders at once SOLVED

Postby hamburn on Fri May 29, 2009 10:37 am

(...)Don't underestimate the simplicity and flexibility of the CLI in Linux. It is a powerful feature in Linux (...)


Have seen that Fred, thanks to you. 5575 files at once.... Now I have to get a reference, to learn the other commands. :lol:

H.
for linux to be successful on the desktop for normal users, normal users have to feel comfortable with it.
The interesting users are your mother, your neighbor. Those are the people that will decide whether or not linux is accepted on the desktop.
M.B.
hamburn
Level 2
Level 2
 
Posts: 64
Joined: Tue May 27, 2008 5:48 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], cac, hackindave, I2k4, karlchen, Mute Ant and 32 guests