Re: Lesson learned / file permissions

From: Olle Eriksson (pt00oer_at_student.bth.se)
Date: 10/20/04

  • Next message: Karl E. Jorgensen: "Re: Running jobs at shutdown"
    To: debian-user@lists.debian.org
    Date: Wed, 20 Oct 2004 15:19:22 +0200
    
    

    On Wednesday 20 October 2004 13.27, Andreas Janssen wrote:
    > Olle Eriksson (<pt00oer@student.bth.se>) wrote:
    > > $ sudo chmod o-rwx /home/username/*
    > > $ sudo chmod o-rwx /home/username/.*
    >
    > All files in your /home should be yours, so it should be sufficient to
    > run chmod as a user. BTW, you are lucky you didn't run the second chmod
    > with the -R option, like I did a while ago. .* also includes ..

    Oh but actually I did. :) I just found out. Luckily the other directories
    in /home are not critical and rather small, so it was no big problem to
    fix them.

    > Aha. So there are files in your home folder, that you need, and that
    > are owned by root? Why? I guess the problem is that they belonged to
    > root. With the restrictive permissions, you could not access them. The
    > change I would make is not to make them world-readable. Instead use
    > chown to change the owner from root to olle.

    I found out why. See my other post.

    Thanks
    Olle

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Karl E. Jorgensen: "Re: Running jobs at shutdown"

    Relevant Pages

    • Re: Possible system breach due to an improper command
      ... As stated in anther thread this is a very silly use of chmod. ... lock you out of your own home directory and will ... try to lock the directoy one level up as well. ... ]Well, the next thing I know I am out of my locked shell and in root, ...
      (comp.unix.admin)
    • Re: Possible system breach due to an improper command
      ... As stated in anther thread this is a very silly use of chmod. ... lock you out of your own home directory and will ... try to lock the directoy one level up as well. ... ]Well, the next thing I know I am out of my locked shell and in root, ...
      (comp.security.misc)
    • Re: Not enough permissions to read and write
      ... "Michael Soibelman" wrote in message ... >> issue the chmod command (i.e. chmod root myfile). ... >> become the superuser first. ...
      (alt.os.linux.suse)
    • Re: A spot of advice needed - OP reports back
      ... latest version and give you a list of progs it can upgrade. ... Do I use chmod to do this? ... You need to be the root use to do this - you did make a not of the root ... a web site dedicated to linux newbies. ...
      (uk.comp.os.linux)
    • Solaris 8: Cannot rm, chmod, chown, or do anything as Root
      ... I had this server in production and everything ... was working fine (Root, users, everthing). ... chmod: WARNING: can't change index-out.html ... I tried all this as user nskilj, ...
      (comp.unix.solaris)