Newbie needs help to change folder/file permissions

I’ve migrated to Suse from Mandriva. I installed all my backup folders/files to my “home” folder but they have come up locked.
I remember in Mandriva to change the permissions I pressed Alt F2 and then entered a command. How do I do it in Suse?

On 2011-07-29 00:26, theblackpig wrote:
>
> I’ve migrated to Suse from Mandriva. I installed all my backup
> folders/files to my “home” folder but they have come up locked.
> I remember in Mandriva to change the permissions I pressed Alt F2 and
> then entered a command. How do I do it in Suse?

The same.

But you have to make sure first what is the problem: my guess is that the
UID number is not the same on your old system and the new.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

The UID number (whatever that is!!) may be different but your reply doesnt answer the question!
When I oph the properties box the folder is assigned to “root” if that helps

On Fri, 29 Jul 2011 14:06:03 +0530, theblackpig
<theblackpig@no-mx.forums.opensuse.org> wrote:

>
> The UID number (whatever that is!!) may be different but your reply
> doesnt answer the question!
> When I oph the properties box the folder is assigned to “root” if that
> helps
>

well, carlos did answer your question, but you didn’t understand.

if the files you are trying to access are owned by “root”, your normal
user account can’t read them, of course. you’ll have to assign them to
your normal user name & group.

i have no idea what filemanager or desktop environment you are using. this
always works from the command line, though. the command to use is “chown”.
there’s a manual entry for it (type “man chown” in a terminal). here’s the
procedure to change ownership for all those files, assuming they’re all in
one location:

first you have to know what user group your normal user belongs to. by
default on openSUSSE that’s a group of the same name as your user name. to
make sure, type “id <your name>” into a terminal. that will tell you what
group(s) you belong to.

assuming that your files are in /home/<your name>/backup, you’d have to do
the following in a terminal:

su - [supply password when asked]
chown -R <your name>:<your group name>
exit

that i believe will solve your problem. would’t hurt to read through the
manual of “chown” though.


phani.

On Fri, 29 Jul 2011 16:19:32 +0530, phanisvara <listmail@phanisvara.com>
wrote:

> On Fri, 29 Jul 2011 14:06:03 +0530, theblackpig
> <theblackpig@no-mx.forums.opensuse.org> wrote:
>
>>
>> The UID number (whatever that is!!) may be different but your reply
>> doesnt answer the question!
>> When I oph the properties box the folder is assigned to “root” if that
>> helps
>>
>
> well, carlos did answer your question, but you didn’t understand.
>
> if the files you are trying to access are owned by “root”, your normal
> user account can’t read them, of course. you’ll have to assign them to
> your normal user name & group.
>
> i have no idea what filemanager or desktop environment you are using.
> this always works from the command line, though. the command to use is
> “chown”. there’s a manual entry for it (type “man chown” in a terminal).
> here’s the procedure to change ownership for all those files, assuming
> they’re all in one location:
>
> first you have to know what user group your normal user belongs to. by
> default on openSUSSE that’s a group of the same name as your user name.
> to make sure, type “id <your name>” into a terminal. that will tell you
> what group(s) you belong to.
>
> assuming that your files are in /home/<your name>/backup, you’d have to
> do the following in a terminal:
>
> su - [supply password when asked]
> chown -R <your name>:<your group name>
> exit
>
> that i believe will solve your problem. would’t hurt to read through the
> manual of “chown” though.
>
>

i’m sorry, i made a mistake in the commands i sent you :frowning: i forgot to
mention the directory to be changed. also, the command “su -” brings you
to another location, from where you have to change back to your home
directory. here’s the correct sequence (again, assuming the files are in
/home/<your name>/backup):

su -
cd /home/<your name>
su -R <your name>:<your group name> backup/
exit


phani.

On Fri, 29 Jul 2011 16:24:22 +0530, phanisvara <listmail@phanisvara.com>
wrote:

> On Fri, 29 Jul 2011 16:19:32 +0530, phanisvara <listmail@phanisvara.com>
> wrote:
>
>> On Fri, 29 Jul 2011 14:06:03 +0530, theblackpig
>> <theblackpig@no-mx.forums.opensuse.org> wrote:
>>
>>>
>>> The UID number (whatever that is!!) may be different but your reply
>>> doesnt answer the question!
>>> When I oph the properties box the folder is assigned to “root” if that
>>> helps
>>>
>>
>> well, carlos did answer your question, but you didn’t understand.
>>
>> if the files you are trying to access are owned by “root”, your normal
>> user account can’t read them, of course. you’ll have to assign them to
>> your normal user name & group.
>>
>> i have no idea what filemanager or desktop environment you are using.
>> this always works from the command line, though. the command to use is
>> “chown”. there’s a manual entry for it (type “man chown” in a
>> terminal). here’s the procedure to change ownership for all those
>> files, assuming they’re all in one location:
>>
>> first you have to know what user group your normal user belongs to. by
>> default on openSUSSE that’s a group of the same name as your user name.
>> to make sure, type “id <your name>” into a terminal. that will tell you
>> what group(s) you belong to.
>>
>> assuming that your files are in /home/<your name>/backup, you’d have to
>> do the following in a terminal:
>>
>> su - [supply password when asked]
>> chown -R <your name>:<your group name>
>> exit
>>
>> that i believe will solve your problem. would’t hurt to read through
>> the manual of “chown” though.
>>
>>
>
>
> i’m sorry, i made a mistake in the commands i sent you :frowning: i forgot to
> mention the directory to be changed. also, the command “su -” brings you
> to another location, from where you have to change back to your home
> directory. here’s the correct sequence (again, assuming the files are in
> /home/<your name>/backup):
>
> su -
> cd /home/<your name>
> su -R <your name>:<your group name> backup/
> exit
>

i think i have to take a break; that line should read

chown -R <your name>:<your group name> backup/

of course.


phani.

On 07/29/2011 10:36 AM, theblackpig wrote:
>
> but your reply doesnt answer the question!

yes it did, but apparently your mandrivia background was not as deep as
Carlos expected…

try this: go to the main menu (you didn’t say which desktop environment
you are using, so maybe it is not the KDE like i have, so these
directions might be off a little) open Menu > Applications > System >
File Manager > File Manager - Super User Mode, you will be asked for the
root password, give it and then the root/administrator/superuser powered
file manager will open…

with it you can go into the Properties > Permissions dialog and change
ownership of each directory now owned by root to your ID in the “User:”
block and ‘users’ in the “Group:” block…AND right below those blocks
you must change, left click to put a check mark in the box next to
“Apply changes to all subfolders and their contents”, then click OK

personally, like phani i would do it at the command line because it is
easier and quicker:

chown -R [yourID]:[users] [/target]


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 2011-07-29 10:36, theblackpig wrote:
>
> The UID number (whatever that is!!) may be different but your reply
> doesnt answer the question!

Yes, I did.
I could not say more because I lack precise information about your system,
and because I assumed you just needed a clue, not being a novice.

Further, you said that you did alt-F2 and then typed a command. I assume
you know the command and do not expect me to tell it, because it is the
same command in any linux.

But others have typed longer explanations, so I hope you now know how to
continue.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

BTW UID is the user ID number this is what determines ownership of files. The user name is just for us humans. The real control is the UID.