Professional Web Applications Themes

How to change permission to -r-sr-sr-x - Sun Solaris

Hi all, Some idiot changed /usr/bin/passwd into 0700 mode on Solaris 8 The original is -r-sr-sr-x. How do I get it back? Note: The idiot is not me BTW, I'm very new in unix Thanks in advance c0rum_z...

  1. #1

    Default How to change permission to -r-sr-sr-x

    Hi all,

    Some idiot changed /usr/bin/passwd into 0700 mode on Solaris 8

    The original is -r-sr-sr-x. How do I get it back?

    Note: The idiot is not me

    BTW, I'm very new in unix

    Thanks in advance

    c0rum_z
    c0rum_z Guest

  2. #2

    Default Re: How to change permission to -r-sr-sr-x

    On Tue, 23 Sep 2003 19:45:17 -0700, c0rum_z wrote:
     

    chmod 6555 /usr/bin/passwd

    Dave Guest

  3. #3

    Default Re: How to change permission to -r-sr-sr-x

    Dave Uhring wrote:
     
     [/ref]
     

    Or in theory you could do "pkgchk -f -p /usr/bin/passwd" to
    have the system put it back to the way the package system thinks
    it's supposed to be.

    - Logan

    Logan Guest

  4. #4

    Default Re: How to change permission to -r-sr-sr-x

    com (c0rum_z) wrote in message news:<google.com>... 

    The following command should do the trick:
    chmod 6555 /usr/bin/passwd

    For more info do a "man chmod"
    Joe Guest

  5. #5

    Default Re: How to change permission to -r-sr-sr-x

    Logan Shaw wrote: 
    >

    >>[/ref]

    >
    >
    > Or in theory you could do "pkgchk -f -p /usr/bin/passwd" to
    > have the system put it back to the way the package system thinks
    > it's supposed to be.[/ref]


    Not true in this case. From the pkgchk(1M) manpage (note my capitals
    at the end)



    -f Correct file attributes if possible. If used with the
    -x option, this option removes hidden files. When
    pkgchk is invoked with this option, it creates
    directories, named pipes, links, and special devices
    if they do not already exist. If the -d option calls
    out an uninstalled package, the -f option will only
    take effect if the package is in directory (not
    stream) format. All file attributes will be set to
    agree with the entries in the pkgmap file EXCEPT THAT
    SETUID, SETGID, AND STICKY BITS WILL NOT BE SET IN THE
    MODE.


    --
    Tony

    Tony Guest

  6. #6

    Default Re: How to change permission to -r-sr-sr-x

    In article <google.com>,
    com (c0rum_z) writes: 

    We guessed that : >
    man chmod - you can use either numbers or symbolic representation
    already posted by others.
    make sure its the Solaris passwd and not a "replacement"..
    http://sunsolve.sun.com/pub-cgi/fileFingerprints.pl
    Guest

  7. #7

    Default Re: How to change permission to -r-sr-sr-x

    net () wrote in message news:<QXicb.4159$f7.308365localhost>... 
    >
    > We guessed that : >
    > man chmod - you can use either numbers or symbolic representation
    > already posted by others.
    > make sure its the Solaris passwd and not a "replacement"..
    > http://sunsolve.sun.com/pub-cgi/fileFingerprints.pl[/ref]

    Thanks ppl
    c0rum_z Guest

Similar Threads

  1. change security permission
    By asaf in forum ASP Components
    Replies: 0
    Last Post: April 3rd, 10:34 PM
  2. Replies: 0
    Last Post: August 15th, 10:02 AM
  3. Replies: 4
    Last Post: November 20th, 09:24 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