public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ralph Slooten <axllent@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] I (user) can write to / ... but why? (solved)
Date: Tue, 16 Aug 2005 18:09:07 +0200	[thread overview]
Message-ID: <43020FA3.3010203@gmail.com> (raw)
In-Reply-To: <4300DE8A.2090205@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The problem on both my laptop and workstation was simply the fact that
the root partition (/) was owned by UID=1000 GUI=100. Apparently this is
a bug, but a simple `chown root:root /` was sufficient to fix the
problem, and I also changed several file-permissions in underlying
directories (like usr).

Thanks all for your help

Greetings
Ralph

Ralph Slooten wrote:
> Hiya all,
> 
> Now I feel *really* stupid asking this, but for the life of me I cannot
> work it out. On two machines here at home I discovered that I can write
> as a particular normal user to the root partition (/). This also means I
> can rename /root to /root1 if I want (I just tried), and create / delete
> files on / too. The strange thing is this does not work for another
> account (wife's) on the same machine, which seems to have the same
> permissions. It's almost like / is getting mounted by user "axllent"
> here. Other partitions that get mounted do not work, just /
> 
> I have checked fstab:
> /dev/hda3    /     reiserfs    noatime       0 0
> 
> In /etc/lilo.conf (on one machine that uses it) I have:
> image=/boot/vmlinuz-2.6.11.10
>         label="2.6.11.10"
>         root=/dev/hda3
>         vga=791
>         read-only
> 
> the permissions of /dev/hda3 are:
> axllent@workstation ~ $ ll /dev/hda3
> lr-xr-xr-x  1 root root 33 Aug 15 18:55 /dev/hda3 ->
> ide/host0/bus0/target0/lun0/part3
> 
> axllent@workstation ~ $ ll /dev/ide/host0/bus0/target0/lun0/part3
> brw-------  1 root root 3, 3 Jan  1  1970
> /dev/ide/host0/bus0/target0/lun0/part3
> 
> My groups for this user on both machines are:
> wheel audio cdrom games cdrw usb users portage
> &
> wheel audio at usb users
> 
> My wife who cannot write to / has
> wheel audio games usb users
> 
> Using Reiserfs3.
> 
> Does anyone have any idea what's causing this, and possibly how I can
> make / read-only?
> 
> Greetings
> Ralph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDAg+jCt0ZF9kLPvYRAp4CAJwOFwRHHYQJ2iUWNLSro8/t3Uh4NgCfcsSq
LH/k4Y/IpkR8MlneKp6Retg=
=sMCd
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



      parent reply	other threads:[~2005-08-16 16:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-15 18:27 [gentoo-user] I (user) can write to / ... but why? Ralph Slooten
2005-08-15 19:12 ` Daniel da Veiga
2005-08-15 20:21   ` Christoph Gysin
2005-08-15 20:45     ` Neil Bothwick
2005-08-16  1:07       ` Nick Rout
2005-08-16  5:21         ` Ralph Slooten
2005-08-16  5:17       ` Ralph Slooten
2005-08-16  5:41         ` Dirk Heinrichs
2005-08-16  7:00           ` Ralph Slooten
2005-08-16  7:17             ` Dirk Heinrichs
2005-08-16 10:21               ` Michael Kintzios
2005-08-16  9:26             ` Nick Rout
2005-08-16  9:47               ` Frank Schafer
2005-08-16 13:33                 ` Ralph Slooten
2005-08-16  7:14       ` Christoph Gysin
2005-08-16  7:42         ` Neil Bothwick
2005-08-16 16:09 ` Ralph Slooten [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43020FA3.3010203@gmail.com \
    --to=axllent@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox