Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #183574

Re: How to gain control over the system?

From Kaj Persson <70147persson@telia.com>
Newsgroups linux.debian.user
Subject Re: How to gain control over the system?
Date 2017-07-11 22:40 +0200
Message-ID <u2a6S-6ZW-29@gated-at.bofh.it> (permalink)
References <u165l-7NM-35@gated-at.bofh.it> <u1k8i-89f-19@gated-at.bofh.it> <u1tXX-5Jo-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2017-07-10 at 01:36, Felix Miata wrote:
> Kaj Persson composed on 2017-07-09 14:54 (UTC+0200):
>
>> * Regarding access to my user directory: During my search I did in fact
>> find some files and directories owned by user root or group root. These
>> are changed to be owned by my user id and group id, but this did not
>> help. By the way, On this computer I have always had just one user,
>> mine, and hence got the user id 1000 and group id 1000. This is the case
>> now too.
> Are you 100% sure you found and corrected 100% of bad ones? Does 1000:1000 own
> $HOME? X session settings not saved is virtually always bad file permissions or
> errant ownership. Anything that got stolen by root:root via errant sudo or su
> will almost certainly have to be fixed as root, exception being via a
> superwizard who would unlikely ever have gotten into this trouble in the first
> place.
>
> You really don't need to hunt for any that are bad unless you care to know which
> are causing the trouble. Simply do as root:
>
> 	chown -R 1000:1000 /home/kaj/
>
> using whatever your actual username is rather than kaj.

Yes, I think so. Shouldn't I?

All the commands in the following are given as user root.
This is the output from the command
ls -Al /home:

drwxr-xr-x 39 kaj  kaj  16384 jul 11 17:23 kaj
drwx------  2 root root 16384 sep 28  2016 lost+found
drwx------  4 root root  4096 okt 26  2016 .Trash-0

and from the command
tree -qpadxugL 2 /home:

/home
├── [drwxr-xr-x kaj      kaj     ]  kaj
│   ├── [drwx------ kaj      kaj     ]  .alsaplayer
│   ├── [drwxr-xr-x kaj      kaj     ]  Bilder
│   ├── [drwxr-xr-x kaj      kaj     ]  bin
│   ├── [drwx------ kaj      kaj     ]  .cache
│   ├── [drwxr-xr-x kaj      kaj     ]  .config
│   ├── [drwxrwx--- root     kaj     ]  DATA
│   ├── [drwxr-xr-x kaj      kaj     ]  Dokument
│   ├── [drwxr-xr-x kaj      kaj     ]  dwhelper
│   ├── [drwx------ kaj      kaj     ]  .gconf
│   ├── [drwx------ kaj      kaj     ]  .gnome2
│   ├── [drwx------ kaj      kaj     ]  .gnome2_private
│   ├── [drwx------ kaj      kaj     ]  .gnupg
│   ├── [drwxrwx--- root     kaj     ]  Hämtningar
│   ├── [drwx------ kaj      kaj     ]  .local
│   ├── [drwx------ kaj      kaj     ]  Mail
│   ├── [drwxr-xr-x kaj      kaj     ]  Mallar
│   ├── [drwx------ kaj      kaj     ]  .mozc
│   ├── [drwx------ kaj      kaj     ]  .mozilla
│   ├── [drwxrwx--- root     kaj     ]  Musik
│   ├── [drwxrwx--- root     kaj     ]  Nedladd
│   ├── [drwxr-xr-x kaj      kaj     ]  Publikt
│   ├── [drwxr-xr-x kaj      kaj     ]  Skrivbord
│   ├── [drwx------ kaj      kaj     ]  .thunderbird
│   ├── [drwxr-xr-x kaj      kaj     ]  Video
├── [drwx------ root     root    ]  lost+found
└── [drwx------ root     root    ]  .Trash-0
     ├── [drwx------ root     root    ]  files
     └── [drwx------ root     root    ]  info


and from
tree -qpadxugL 3 /home/kaj/.config:

/home/kaj/.config
├── [drwxr-xr-x kaj      kaj     ]  caja
│   └── [drwxr-xr-x kaj      kaj     ]  scripts
├── [drwx------ kaj      kaj     ]  enchant
├── [drwx------ kaj      kaj     ]  gtk-2.0
├── [drwx------ kaj      kaj     ]  gtk-3.0
├── [drwx------ kaj      kaj     ]  ibus
│   └── [drwx------ kaj      kaj     ]  bus
├── [drwxr-xr-x kaj      kaj     ]  libreoffice
│   └── [drwx------ kaj      kaj     ]  4
│       ├── [drwxr-xr-x kaj      kaj     ]  cache
│       └── [drwxr-xr-x kaj      kaj     ]  user
├── [drwx------ kaj      kaj     ]  mate
│   ├── [drwx------ kaj      kaj     ]  eom
│   └── [drwx------ kaj      kaj     ]  panel2.d
│       └── [drwx------ kaj      kaj     ]  default
├── [drwxr-xr-x kaj      kaj     ]  mate-session
│   └── [drwxr-xr-x kaj      kaj     ]  saved-session
├── [drwx------ kaj      kaj     ]  mc
├── [drwxr-xr-x kaj      kaj     ]  pluma
└── [drwxr-xr-x kaj      kaj     ]  rncbc.org


A few explanations:
The names are partly in Swedish, but you might never the less understand 
them, I think. "Hämtningar" and "Nedladd" is Swedish for "Downloads". 
Those few directories owned by user root and group kaj are mounted file 
systems (FAT32) containing only user data. I have removed a few lines 
regarding installed programmes.

I see nothing which gives me an idea of what is wrong. Are there any 
more files or directories to look at? In /etc perhaps?

/Kaj

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 00:10 +0200
  Re: How to gain control over the system? Oflameo <oflameo2@gmail.com> - 2017-07-09 00:30 +0200
    Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-09 01:00 +0200
      Re: How to gain control over the system? Anders Andersson <pipatron@gmail.com> - 2017-07-09 11:30 +0200
        Re: How to gain control over the system? Dejan Jocic <jodejka@gmail.com> - 2017-07-09 12:00 +0200
  Re: How to gain control over the system? davidson@freevolt.org - 2017-07-09 01:30 +0200
    Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-09 12:10 +0200
      Re: How to gain control over the system? Richard Owlett <rowlett@cloud85.net> - 2017-07-09 13:50 +0200
  Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 15:10 +0200
    Re: How to gain control over the system? [a security-side-note] Eike Lantzsch <zp6cge@gmx.net> - 2017-07-09 16:00 +0200
      Re: How to gain control over the system? [a security-side-note] Dejan Jocic <jodejka@gmail.com> - 2017-07-09 16:20 +0200
    Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-09 19:00 +0200
      Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 19:10 +0200
        Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 23:40 +0200
    Re: How to gain control over the system? Felix Miata <mrmazda@earthlink.net> - 2017-07-10 01:40 +0200
      Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-11 22:40 +0200
        Re: How to gain control over the system? David Wright <deblis@lionunicorn.co.uk> - 2017-07-11 23:00 +0200
          Re: How to gain control over the system? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-07-11 23:10 +0200
        Re: How to gain control over the system? Felix Miata <mrmazda@earthlink.net> - 2017-07-12 03:50 +0200
          Re: How to gain control over the system? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-07-12 14:30 +0200
          Re: How to gain control over the system? Kaj Persson <kape_fin@algonet.se> - 2017-07-13 12:30 +0200
            Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-13 13:20 +0200
              Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-13 14:20 +0200
                Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-13 15:20 +0200
              Re: How to gain control over the system? tomas@tuxteam.de - 2017-07-13 15:20 +0200
                Re: How to gain control over the system? David Wright <deblis@lionunicorn.co.uk> - 2017-07-13 16:30 +0200
  Re: How to gain control over the system? Jimmy Johnson <field.engineer@gmail.com> - 2017-07-09 22:30 +0200
    Re: How to gain control over the system? Kaj Persson <kape_fin@algonet.se> - 2017-07-10 00:40 +0200
      Re: How to gain control over the system? Jimmy Johnson <field.engineer@gmail.com> - 2017-07-10 00:50 +0200
      Re: How to gain control over the system? Joel Rees <joel.rees@gmail.com> - 2017-07-10 03:10 +0200
      Re: How to gain control over the system? Dejan Jocic <jodejka@gmail.com> - 2017-07-10 10:00 +0200
      Re: How to gain control over the system? RavenLX <ravenlx@sitesplace.net> - 2017-07-12 14:40 +0200
        Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-12 15:30 +0200
          Re: How to gain control over the system? RavenLX <ravenlx@sitesplace.net> - 2017-07-16 15:50 +0200
            Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-16 16:50 +0200

csiph-web