Permissions issue '644' (SOLVED)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
leadwtZ

Permissions issue '644' (SOLVED)

Post by leadwtZ »

Hi,

During boot I am getting the following message (in a nice little box) which I have never seen before:

Users Home/.dmrc file is being ignored.
This prevents the default session and language from being saved.
File should be owned by user and have 644 permissions.
Users /Home directory must be owned by user and not writeable by others.


When I tried to access /home via the desktop shortcut I got a message saying that Caja had similar issues (sorry forgot to screenshot it) and since then the desktop icons have vanished.

Any ideas on the way out here? Urm in other words HELP! :?

(Only changes made today was re-install of Oracle VB and Windows 8.1 followed by upgrade to windows 10.)

AND get this in terminal:

bash: /home/geopol/.bashrc: Permission denied
geopol@georgedog / $


AND now nothing works from the 'menu',
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

When you are in the login screen, press ctrl-alt-f1, than enter your user name and your password. Note, that you do not get any visual feedback, if you enter the password. Enter it blindly and press the Enter key.

In the virtual console type this:

Code: Select all

sudo chmod 600 .dmrc
Be very precise, don't use any capital letter and don't miss the dot left of the file name. Also here you have to enter your password blindly.
When this has finished press ctrl-d
Now go back to the graphical environment by pressing ctrl-alt-f7 or ctrl-alt-f8
Try to log in.
From your description I see the chance, that there might be more problems in your account. Report them in case.
leadwtZ

Re: Permissions issue '644'

Post by leadwtZ »

Cosmo,

Thanks. Just to check I have auto-login enabled and cannot access control panel to change it.

How do I get around that?

Meanwhile I'm printing your instructions out!
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

At first: you can log out (at least I assume so).

At second: You can follow my advice with the virtual console also if you are already logged in. I assumed, you would not be able to log in.

At third: As you are logged in you can - hopefully, I am not quite sure about this after your description - open in your desktop a terminal and enter the same code, that I posted above. If this works, it is the most easy and quick solution. After that log out and back in and see, if you get error messages.
leadwtZ

Re: Permissions issue '644'

Post by leadwtZ »

Well 'Logout' from 'menu' not working like everything else.

Is there an 'F' key that does the same job?

Desktop terminal output as below:

bash: /home/geopol/.bashrc: Permission denied
geopol@georgedog / $ sudo chmod 600 .dmrc
[sudo] password for geopol:
chmod: cannot access ‘.dmrc’: No such file or directory
geopol@georgedog / $
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

You could logout with ctrl-alt-del, but I say this just for completeness. Don't do it at now.

Instead enter in the terminal:

Code: Select all

ls -la
Mark the complete result inclusive the command with the mouse and press ctrl-shift-C
In the forum click the Code-button above the text box, than press ctrl-v
leadwtZ

Re: Permissions issue '644'

Post by leadwtZ »

Cosmo,

Appreciate the very clear instructions.

Output herewith:


Code: Select all

total 108
drwxr-xr-x  24 root root  4096 Jul 19 18:07 .
drwxr-xr-x  24 root root  4096 Jul 19 18:07 ..
drwxr-xr-x   2 root root  4096 Jul 19 17:44 bin
drwxr-xr-x   3 root root  4096 Aug  2 10:21 boot
drwxr-xr-x   2 root root  4096 Jul 19 17:15 cdrom
drwxr-xr-x  19 root root  4640 Aug 10 21:29 dev
drwxr-xr-x 156 root root 12288 Aug 10 21:04 etc
drwxr-xr-x   6 root root  4096 Jul 31 21:53 home
lrwxrwxrwx   1 root root    33 Jul 19 17:19 initrd.img -> boot/initrd.img-3.19.0-32-generic
drwxr-xr-x  25 root root  4096 Jul 20 22:26 lib
drwxr-xr-x   2 root root  4096 Jul 19 18:07 lib32
drwxr-xr-x   2 root root  4096 Jul 19 17:36 lib64
drwx------   2 root root 16384 Jul 21 13:52 lost+found
drwxr-xr-x   3 root root  4096 Jul 21 13:52 media
drwxr-xr-x   2 root root  4096 Jul 21 13:52 mnt
drwxr-xr-x   4 root root  4096 Aug 10 10:37 opt
dr-xr-xr-x 184 root root     0 Aug 10 20:48 proc
drwx------  16 root root  4096 Jul 31 21:53 root
drwxr-xr-x  27 root root   900 Aug 10 21:29 run
drwxr-xr-x   2 root root 12288 Aug 10 10:36 sbin
drwxr-xr-x   2 root root  4096 Nov 28  2015 srv
dr-xr-xr-x  13 root root     0 Aug 10 20:48 sys
drwxrwxrwt  12 root root  4096 Aug 10 21:41 tmp
drwxr-xr-x  11 root root  4096 Jul 19 18:07 usr
drwxr-xr-x  11 root root  4096 Nov 28  2015 var
lrwxrwxrwx   1 root root    30 Jul 19 17:19 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
geopol@georgedog / $ 
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

Sorry, wrong output. I assumed, that you open a new terminal, in this case we would have got the output for your home, what you show, is the root of the file system.

This command will circumvent this misunderstanding:

Code: Select all

ls -la ~
Otherwise my advice does apply.
One thing more: I asked you to include the entered command into the marking; this makes it easier to see here, if there was a misunderstanding. Please do so.
leadwtZ

Re: Permissions issue '644'

Post by leadwtZ »

Oops sorry for omission;

Herewith:

Code: Select all

bash: /home/geopol/.bashrc: Permission denied
geopol@georgedog / $ ls -la ~
ls: cannot open directory /home/geopol: Permission denied
geopol@georgedog / $ 
[/color]
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

Ok, than we do it with this:

Code: Select all

sudo ls -la ~geopol
leadwtZ

Re: Permissions issue '644'

Post by leadwtZ »

Herewith thanks:

Code: Select all

bash: /home/geopol/.bashrc: Permission denied
geopol@georgedog / $ sudo ls -la ~geopol
[sudo] password for geopol: 
total 1436
drwxrwx--- 46 root   root      4096 Aug 10 20:53 .
drwxr-xr-x  6 root   root      4096 Jul 31 21:53 ..
drwxrwx---  3 geopol geopol    4096 Jul 19 18:55 .adobe
drwxrwx---  4 geopol geopol    4096 Jul 29 22:08 .assaultcube_v1.104
-rw-------  1 geopol geopol     662 Jul 20 22:31 .bash_history
-rw-r--r--  1 geopol geopol     220 Jul 19 17:16 .bash_logout
drwxrwx---  2 geopol geopol    4096 Jul 21 07:55 .bogofilter
drwxrwx--- 13 geopol geopol    4096 Aug  2 13:39 .cache
drwxrwx--- 12 geopol geopol    4096 Aug 10 14:01 .claws-mail
drwxrwx--- 27 geopol geopol    4096 Aug 10 10:09 .config
drwxrwx---  2 geopol geopol    4096 Jul 20 12:10 .cups
drwxrwx---  3 geopol geopol    4096 Jul 19 17:22 .dbus
drwxrwx---  2 root   root      4096 Jul 18 14:05 DEBIAN
drwxrwx---  2 geopol geopol    4096 Jul 20 15:39 Desktop
-rw-r-----  1 geopol geopol       2 Aug 10 10:04 .dmrc
drwxrwx--- 17 geopol geopol    4096 Aug  1 12:13 Documents
drwxrwx---  2 geopol geopol    4096 Aug  7 11:05 Downloads
drwxrwx---  4 root   root      4096 Jul 18 14:05 etc
drwxrwx---  3 geopol geopol    4096 Jul 20 22:12 .frozen-bubble
drwxrwx---  5 geopol geopol    4096 Aug 10 20:52 .gconf
drwxrwx--- 24 geopol geopol    4096 Jul 21 21:30 .gimp-2.8
-rw-r-----  1 geopol geopol       0 Aug 10 20:55 .gksu.lock
drwxrwx---  3 geopol geopol    4096 Jul 19 17:57 .gnome2
drwxrwx---  2 geopol geopol    4096 Jul 19 17:57 .gnome2_private
drwxrwx---  2 geopol geopol    4096 Jul 19 21:34 .gnupg
drwxrwx---  2 geopol geopol    4096 Aug  4 21:39 .gstreamer-0.10
drwxrwx---  2 geopol geopol    4096 Aug 10 11:24 .hplip
-rw-------  1 geopol geopol   10560 Aug 10 10:04 .ICEauthority
drwxrwx---  2 geopol geopol    4096 Jul 19 18:01 .icons
drwxrwx---  3 geopol geopol    4096 Jul 20 23:03 .kde
drwxrwx---  5 geopol geopol    4096 Jul 19 17:23 .linuxmint
drwxrwx---  3 geopol geopol    4096 Jul 19 17:22 .local
drwxrwx---  3 geopol geopol    4096 Jul 19 18:55 .macromedia
drwxrwx---  3 geopol geopol    4096 Jul 19 17:57 .moonchild productions
drwxrwx---  4 geopol geopol    4096 Jul 19 17:49 .mozilla
drwxrwx---  2 geopol geopol    4096 Jul 19 17:22 Music
drwxrwx---  3 geopol geopol    4096 Jul 19 18:16 .nv
drwxrwx---  4 geopol geopol    4096 Aug 10 11:06 .openarena
drwxrwx--- 21 geopol geopol    4096 Jul 30 13:05 Pictures
drwxrwx---  2 geopol geopol   36864 Jul 23 11:33 Pictures LOOSE
-rw-------  1 geopol geopol 1065178 Aug  8 16:31 plan_of_land_highlighted_in_pink.jpg
-rwxr-xr-x  1 geopol geopol   97718 Mar 12 01:15 pminstaller.sh
-rw-r--r--  1 geopol geopol     675 Jul 19 17:16 .profile
drwxrwx---  2 geopol geopol    4096 Aug 10 10:30 ProgFiles
drwxrwx---  2 geopol geopol    4096 Jul 19 17:22 Public
-rw-rw-r--  1 geopol geopol    2739 Mar 12 01:15 README
-rw-r--r--  1 geopol geopol    1110 Jul  1 22:51 Release.key
drwxrwx---  2 geopol geopol    4096 Jul 19 17:22 Templates
drwxrwx---  2 geopol geopol    4096 Jul 19 18:01 .themes
drwxrwx---  4 geopol geopol    4096 Jul 21 21:29 .thumbnails
drwxrwx---  4 geopol geopol    4096 Jul 19 18:26 .thunderbird
drwxrwx---  6 root   root      4096 Jul 18 14:05 usr
drwxrwx---  2 geopol geopol    4096 Jul 19 17:22 Videos
drwxrwx---  4 geopol geopol    4096 Aug 10 15:02 VirtualBox VMs
drwxrwx---  2 geopol geopol    4096 Jul 20 15:09 .vuescan
drwxrwx---  3 geopol geopol    4096 Jul 20 15:02 VueScan
-rw-r--r--  1 geopol geopol      95 Jul 20 14:59 .vuescanrc
-rw-------  1 geopol geopol     120 Aug 10 10:04 .Xauthority
-rw-r--r--  1 geopol geopol     131 Jul 19 18:03 .xinputrc
-rw-r--r--  1 geopol geopol   27079 Aug 10 11:06 .xsession-errors
geopol@georgedog / $ 
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

There are 3 folders, where I wonder, how they got there at all (DEBIAN, etc and usr). Heaven knows, how they got there and what they do there.

But the main problem is the top most line: You are not the owner of your own home.
I am astonished, that you can log in at all

We will reset the wrong ownership of your home directory:
Enter in the terminal:

Code: Select all

sudo chown geopol:geopol ~geopol
After executing this, log out and back in.
leadwtZ

Re: Permissions issue '644'

Post by leadwtZ »

Well before I follow your instructions the story is:

The box has been on all day and 'sleepy head' next door was retrieving some deleted stuff from the back-up medium.
I think it all stems from there!

I thought it was perhaps to do with my re-installing V. Box etc. !!

Anyway hopefully speak to you later.

EDIT:

Yo Success, bloody marvellous!!

I take it that I can delete those 3 folders that you highlighted (and yes how did they get there?).

Many many thanks Cosmo.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644'

Post by Cosmo. »

Installing VB does not create those folders in your home. It stays a mystery, which hopefully does not give us some bad surprises.

BTW: I am no native-English speaker, so the term "sleepy head" gives me no idea, who might have done anything. Do you say, that people besides you do you use your machine and your account?
leadwtZ

Re: Permissions issue '644' SOLVED

Post by leadwtZ »

Yes 'Her in Doors': The wife!! :twisted:
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644' SOLVED

Post by Cosmo. »

After having read your edit:
I am not yet quite satisfied. I think we should do a check - what now should be rather easily possible - if there are possibly additional permission problems. This wrong ownership of your home makes me thoughtful.

Mark the following command and press ctrl-c

Code: Select all

find $HOME ! -user $USER -type f
open a terminal and press ctrl-shift-V
Mark the complete result inclusive the command with the mouse and press ctrl-shift-C
In the forum click the Code-button above the text box, than press ctrl-v.

Report in case, that there is no output.

BTW: Seeing the icon in your last post: How about creating an own user account for her?
leadwtZ

Re: Permissions issue '644' SOLVED

Post by leadwtZ »

Ok - herewith:

Code: Select all

geopol@georgedog ~ $ find $HOME ! -user $USER -type f
find: ‘/home/geopol/.cache/thumbnails/fail’: Permission denied
/home/geopol/.cache/thumbnails/normal/d8ea47c6c6db3da3289ba1aa923f97b7.png
/home/geopol/.cache/thumbnails/normal/ba103f891d61b9ac89d82d69f2424319.png
/home/geopol/.cache/thumbnails/normal/76b6bb75d6f325791e7f4672f5df754a.png
/home/geopol/.cache/thumbnails/normal/e2d1bde8d60ba4f6b0d25d8e04f50368.png
/home/geopol/.cache/thumbnails/normal/3843dba810d6e5b2252e2cdc4ae95144.png
/home/geopol/.cache/thumbnails/normal/b45c54c106d8067c1e542ddc50b77ad5.png
/home/geopol/.cache/thumbnails/normal/02a39f602e237392b74fbf19908e009b.png
/home/geopol/.cache/thumbnails/normal/bb8f48d7b6f53ae10a618d6959ce4bd6.png
/home/geopol/.cache/thumbnails/normal/c5f1750b1d3544452315fc31c09409c5.png
/home/geopol/.cache/thumbnails/normal/d3724f269b8438bc15841565151a9f9a.png
/home/geopol/.cache/thumbnails/normal/de5aa922d4c20d8bf3a5d467569d7bd8.png
/home/geopol/.cache/thumbnails/normal/452c86d7daf223e59a5c5c478c25ba50.png
/home/geopol/.cache/thumbnails/normal/0b4b01d46f7683e54004126270b6db26.png
/home/geopol/.cache/thumbnails/normal/d5f07be2c90ca35e894b2658e49a8c30.png
/home/geopol/.cache/thumbnails/normal/08fabb4f41dcd77bb63ea34c56db044b.png
/home/geopol/.cache/thumbnails/normal/0890d06cc4b5e3ea0b5d40ff56e7e70b.png
/home/geopol/.cache/thumbnails/normal/57a4827e3555f30c9561549506a9eae7.png
/home/geopol/.cache/thumbnails/normal/a00b1be857b770cb5bb31f1e03129709.png
/home/geopol/.cache/thumbnails/normal/221ea20e8875004536a075b7fa9983d9.png
/home/geopol/.cache/thumbnails/normal/8afcf162514bac4a1132c491fd1cf836.png
/home/geopol/.cache/thumbnails/normal/a741959609dea385e4b45803095bd856.png
/home/geopol/.cache/thumbnails/normal/eacfdf01f30be98ba39474da72724995.png
/home/geopol/.cache/thumbnails/normal/3926faaea8bfb37b0843bdf41d202fc6.png
/home/geopol/.cache/thumbnails/normal/906bcbb616f941d43a96efab2ad7afbb.png
/home/geopol/.cache/thumbnails/normal/f16afbeabbd644396fab4218f695f8e0.png
/home/geopol/.cache/thumbnails/normal/19bb88260d559c99ef024084da8decd1.png
/home/geopol/.cache/thumbnails/normal/9e757fd6e13fa05ecee0a353196cd2a5.png
/home/geopol/.cache/thumbnails/normal/b6a14e77712ea8adbb23b831e1cb777a.png
/home/geopol/.cache/thumbnails/normal/220726aad464a143e5e2a5a87c0dafee.png
/home/geopol/.cache/thumbnails/normal/2e531de0c2d414cf74645fd86149c645.png
/home/geopol/.cache/thumbnails/normal/098669cab7318b52471ada196d62bde2.png
/home/geopol/.cache/thumbnails/normal/1a095ccd1863b5b3b4b5ed9f70521c30.png
find: ‘/home/geopol/.cache/dconf’: Permission denied
/home/geopol/Documents/


(Some 100 to 200 documents follow removed for privacy!)



find: ‘/home/geopol/.local/share/Trash’: Permission denied
geopol@georgedog ~ $ 

BTW: Seeing the icon in your last post: How about creating an own user account for her?

Yes a good idea actually as things do go wrong now and again. :wink:
Last edited by leadwtZ on Thu Aug 11, 2016 6:25 am, edited 2 times in total.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Permissions issue '644' SOLVED

Post by Cosmo. »

Oh oh - but not a real surprise. It appears, that you (both?) are playing much with sudo, don't you?

For correction:
Mark the following command completely and make sure, that you do not miss any sign, than press ctrl-c

Code: Select all

find /home/$SUDO_USER ! -user $SUDO_USER -exec chown $SUDO_USER:$SUDO_USER '{}' \;
Open a terminal and enter

Code: Select all

sudo -i
and press the Enter-key; you get prompted for your password, enter it.
Now still in the same terminal press ctrl-shift-V
Run this command and wait until it has finished.
Press twice ctrl-d
Immediately log off and back into your account.
leadwtZ

Re: Permissions issue '644' SOLVED

Post by leadwtZ »

Done that but there was no output for:

find /home/$SUDO_USER ! -user $SUDO_USER -exec chown $SUDO_USER:$SUDO_USER '{}' \;
leadwtZ

Re: Permissions issue '644' SOLVED

Post by leadwtZ »

"Cosmo."]Oh oh - but not a real surprise. It appears, that you (both?) are playing much with sudo, don't you?

Don't really do much command line stuff so 'sudo' not played with. Just about everything is via GUI's.
Mmmm

EDIT: She wants a MAC!
Locked

Return to “Software & Applications”