Professional Web Applications Themes

how to change "chown" if - Linux Setup, Configuration & Administration

It sounds very simple, but how can I change the ownership- chown if the user contains a dot in the middle, eg user.name , it will say chown: user.name invalid user Anyway that I can solve it? Thanks...

  1. #1

    Default how to change "chown" if

    It sounds very simple, but how can I change the ownership- chown if the user
    contains a dot in the middle, eg user.name , it will say
    chown: user.name invalid user

    Anyway that I can solve it? Thanks


    dull Guest

  2. #2

    Default Re: how to change "chown" if

    On Thu, 2 Oct 2003 14:39:44 -0700, dull wrote: 

    Well, doing a
    man chown
    would indicate you can use numberic values for owner and group values.

    to get numberic values
    id user.name
    Bit Guest

  3. #3

    Default Re: how to change "chown" if

    dull wrote:

    chown: "user.name"
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    \\\ http://pages.sbcglobal.net/mtobler/mjt_linux_page.html ///
    Alexander Graham Bell is alive and well in New York,
    and still waiting for a dial tone.

    mjt Guest

  4. #4

    Default Re: how to change "chown" if

    No luck to fix the problem


    "dull" <com> wrote in message
    news:supernews.com... 
    user 


    dull Guest

  5. #5

    Default Re: how to change "chown" if

    On Fri, 3 Oct 2003 09:46:36 -0700, dull wrote: 

    Assuming you are running as root, user.name is in /etc/passwd
    it should work using numeric values.

    example for user postgres:
    grep postgres /etc/passwd
    postgres:x:77:77:system user for postgresql:/var/lib/pgsql:/bin/bash


    cd /some/where
    chown 77:77 some_file_name_here

    Now if you still cannot get it to work, show us the results from the following:

    whoami
    grep
    chown
    ls -al some_file_name_here
    Bit Guest

  6. #6

    Default Re: how to change "chown" if

    Thanks, it works.


    "Bit Twister" <localdomain> wrote in message
    news:home... 
    >
    > Assuming you are running as root, user.name is in /etc/passwd
    > it should work using numeric values.
    >
    > example for user postgres:
    > grep postgres /etc/passwd
    > postgres:x:77:77:system user for postgresql:/var/lib/pgsql:/bin/bash
    >
    >
    > cd /some/where
    > chown 77:77 some_file_name_here
    >
    > Now if you still cannot get it to work, show us the results from the[/ref]
    following: 


    dull Guest

  7. #7

    Default Re: how to change "chown" if

    "dull" wrote 
    Umm, not on my redhat 7.2 or 9.0 -- what distro and release are you on?
    Also, try chown user.name: myfile
    {is a degenerate form of chown user.name:mygroup myfile }
    Is it possible user.name is in fact invalid? Check the three system files
    passwd, shadow, group for fat-fingered edits.


    Frank Guest

  8. #8

    Default Re: how to change "chown" if

    Frank Winans wrote:
     
    >
    > Umm, not on my redhat 7.2 or 9.0 -- what distro and release are you on?
    > Also, try chown user.name: myfile
    > {is a degenerate form of chown user.name:mygroup myfile }
    > Is it possible user.name is in fact invalid? Check the three system files
    > passwd, shadow, group for fat-fingered edits.[/ref]

    I bet it was a typo, and he actually meant:

    chown user:name myfile

    Notice the ":" instead of the ".".

    Nico Guest

Similar Threads

  1. Zoom tool is "-" instead of "+" as default how can I change
    By Terry L. Martin in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 2
    Last Post: May 22nd, 04:20 AM
  2. Change user role from "Publisher" to "Administrator"
    By trialbomfunknumber2 in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: September 19th, 06:51 AM
  3. Replies: 4
    Last Post: December 7th, 06:55 AM
  4. Can actionscript change a "Button's" "Behavior"?
    By jay_architect webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: December 19th, 01:48 AM
  5. "Start" "Program" "Menu" list is empty
    By Pete in forum Windows XP/2000/ME
    Replies: 2
    Last Post: July 10th, 10:42 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