Professional Web Applications Themes

Messed up permissions on RH9 - Linux Setup, Configuration & Administration

Hey, I recently changed my user name on my machine so that I could ssh to the suns at my university. The only problem with this is that for some strange reason, my old user name owned a whole bunch of files in /dev/. So, I changed the ownership of all files in dev to root. The only problem with this is that now I don't have access to some important devices, such as dsp. chmod 666 fixed that. My question now becomes: is it safe to have read write access for all users, or should I change it? I ...

  1. #1

    Default Messed up permissions on RH9

    Hey,

    I recently changed my user name on my machine so that I could ssh to the
    suns at my university.

    The only problem with this is that for some strange reason, my old user name
    owned a whole bunch of files in /dev/. So, I changed the ownership of all
    files in dev to root. The only problem with this is that now I don't have
    access to some important devices, such as dsp. chmod 666 fixed that.

    My question now becomes: is it safe to have read write access for all users,
    or should I change it? I saw that some files in dev have some unique
    groups to which no one belongs, such as lp and disk. Should I make a new
    group, or maybe change the group to which dsp belongs to users and chmod
    660? To tell you the truth, I don't know what the hell to do, and I don't
    know why the files in dev were owend by someone other than root.

    I hope I'm not off topic, my appoligies if I am.

    Thanks for your help
    James Leddy




    James Guest

  2. #2

    Default Re: Messed up permissions on RH9

    James Leddy wrote: 
    James,
    I remember a command I saw at www.redhat.com/docs that changed
    permissions back to 'original'settings per partition. Sorry cann't
    help more than that.

    david

    david Guest

  3. #3

    Default Re: Messed up permissions on RH9

    James Leddy wrote: 

    Did you just change the username in /etc/passwd, /etc/shadow, and
    /etc/group, /etc/gshadow? I hope that is all you did. If you gave
    yourself a new login id (and, implicitly a new UID), then of course all
    the files will belong to the old UID.
     

    Groan. 
    Why not fix them by doing rpm -Uvh dev-whatnot on your distribution
    disk. That should get the permissions back where they should be. You
    will probably need to set some flags to rpm, because they are already there.

    --
    .~. Jean-David Beyer Registered Linux User 85642.
    /V\ Registered Machine 73926.
    /( )\ Shrewsbury, New Jersey http://counter.li.org
    ^^-^^ 8:55am up 12 days, 19:08, 2 users, load average: 2.25, 2.19, 2.07

    Jean-David Guest

  4. #4

    Default Re: Messed up permissions on RH9

    James Leddy wrote: 

    Maybe you could switch back to your previous username?
    I'm not clear why changed it in the first place? Didn't the '-l' flag
    work with ssh? (ssh -l loginname machine.edu)

    --

    Mauriat (www.mjmwired.net)
    ----------------------------
    Remove 'NOSPAM' to email me.

    Mauriat Guest

  5. #5

    Default Re: Messed up permissions on RH9

    On Tue, 21 Oct 2003 09:03:02 -0400,
    Jean-David Beyer <jd.b> wrote:

     


    Anobody ever tried "rpm -a --setugids --setperms"


    Villy
    Villy Guest

  6. #6

    Default Re: Messed up permissions on RH9

    Villy Kruse wrote: 
    >
    >
    >
    > Anobody ever tried "rpm -a --setugids --setperms"
    >
    >
    > Villy[/ref]

    Sorry, I must have been too succint. Something more like this:

    rpm -i dev-3.3.4

    (on my system at the moment).


    --
    .~. Jean-David Beyer Registered Linux User 85642.
    /V\ Registered Machine 73926.
    /( )\ Shrewsbury, New Jersey http://counter.li.org
    ^^-^^ 4:25pm up 13 days, 2:38, 2 users, load average: 1.20, 1.18, 1.20

    Jean-David Guest

Similar Threads

  1. Contribute permissions vs. network permissions
    By ghope in forum Macromedia Contribute Connection Administrtion
    Replies: 2
    Last Post: February 21st, 08:18 PM
  2. Messed up install
    By Matt Silberstein in forum PERL Modules
    Replies: 6
    Last Post: November 16th, 09:48 PM
  3. Hyperlinks gets messed up
    By Regina_Fuchs@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 5
    Last Post: June 30th, 02:09 PM
  4. what have i messed up now?
    By quinton weeks in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: July 30th, 07:08 PM
  5. Every time I upload files onto my site, permissions get messed up.
    By jaycable webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 5
    Last Post: July 15th, 12:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139