How best to change the 'ownership' of a whole drive or directory via 1 or a few commands?

Bas Roufs basroufs at gmail.com
Sat May 21 08:05:05 UTC 2016


Hello Everybody.

Recently, I apparently made a mistake I can reconstruct only roughly. I
tried to recover a few accidently deleted folders at 2 external HD's via
'photorec'. The recovery attempt was not reallly successful,  however I it
is no problem to get back the lost data in other ways.

But another problem popped up. The 'ownership' of my external HD's have
changed from #normal-user-name to #root.

Normally, I do manage to change the ownership of a whole external drive via
kdesudo dolphin > properties. However,  this does not work now. Is there
any commandline option to change back the ownership everything at /dev/sdb/
from #root to, in my case, #bas?

A single folder OR file I can 'chown' via sudo mc. However, this does not
work for  underlying folders and files.

Yours.
Bas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20160521/12c327b6/attachment.html>


More information about the kubuntu-users mailing list