I have a .pem file. The normal chmod [4/6]00 [key_name_here].pem command doesn't work. The permissions are stubbornly stuck at 444 or 644.
Asked
Active
Viewed 1,958 times
0
-
1How about try to change it with `sudo chmod ....`? – P.-H. Lin Mar 13 '15 at 03:20
-
Tried that. Doesn't change anything. Also if I try to do this via the GUI, the settings immediately revert. – Chas Mar 13 '15 at 03:29
-
Is the key on a "special" file system such as NTFS or VFAT ? Network mounted (nfs, samba)? Is the file system mounted ro ? – Panther Mar 13 '15 at 03:36
-
It's on a usb drive in fat 32 format – Chas Mar 13 '15 at 03:43
-
fat32 does not support permissions. Ownership and permissions are set at the time of mounting. If you need linux permissions use a linux file system ;) – Panther Mar 13 '15 at 03:57
-
good to know, bodhi.zazen! – Chas Mar 13 '15 at 04:06
-
See the link I just gave you for how to set ownership and permissions when you mount the partition. – Panther Mar 13 '15 at 04:14
-
Thx. I might just change the location of the file. Seems easier. – Chas Mar 13 '15 at 04:41
1 Answers
0
maybe you should try changing the ownership first and then try to manipulate the chmod
How about sudo chown [yourusername] file.pem and then chmod
Piotr Dajlido
- 422
- 4
- 7