Re: [gentoo-user] [nb] How to change permission on this
On Sun, 17 Feb 2008 01:51:28 -0600, Dale wrote: So it is like typing in the command cd ~ and it takes you to the home directory. It's more like typing cd ~user to go to user's home directory, you can change permissions as the user you want to change to so this has to be done as root. I'd never use cd ~ when cd is only half the typing :) -- Neil Bothwick What colour is a chameleon on a mirror? signature.asc Description: PGP signature
Re: [gentoo-user] [nb] How to change permission on this
Neil Bothwick wrote: On Sun, 17 Feb 2008 01:51:28 -0600, Dale wrote: So it is like typing in the command cd ~ and it takes you to the home directory. It's more like typing cd ~user to go to user's home directory, you can change permissions as the user you want to change to so this has to be done as root. I'd never use cd ~ when cd is only half the typing :) :-P lol Dale :-) :-) -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] [nb] How to change permission on this
I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks -- Amar Ćosić [EMAIL PROTECTED] [EMAIL PROTECTED] +38761240095 http://www.amar.co.ba
Re: [gentoo-user] [nb] How to change permission on this
On Sat, Feb 16, 2008 at 05:03:28PM +0100, Penguin Lover Amar Cosic squawked: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks sudo chown -R your user the root directory of all the files the -R option makes it recursive. no need to sudo if you are root already. W -- Another world, another day, another dawn. Sortir en Pantoufles: up 435 days, 14:55 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [nb] How to change permission on this
On Sat, 16 Feb 2008 08:22:19 -0800, Brian Marshall wrote: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks With recursion: chown -R user:group * That won't cover hidden files, try chown -R user: ~user -- Neil Bothwick Death is proven to be 99.9% fatal to all laboratory rats. signature.asc Description: PGP signature
Re: [gentoo-user] [nb] How to change permission on this
On Sat, 16 Feb 2008 17:03:28 +0100 Amar Cosic [EMAIL PROTECTED] wrote: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks With recursion: chown -R user:group * Brian signature.asc Description: PGP signature
Re: [gentoo-user] [nb] How to change permission on this
On Saturday 16 February 2008, Amar Cosic wrote: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks man chown, option -R -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [nb] How to change permission on this
Thanks guys.. that worked :) On Feb 16, 2008 5:26 PM, Willie Wong [EMAIL PROTECTED] wrote: On Sat, Feb 16, 2008 at 05:03:28PM +0100, Penguin Lover Amar Cosic squawked: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks sudo chown -R your user the root directory of all the files the -R option makes it recursive. no need to sudo if you are root already. W -- Another world, another day, another dawn. Sortir en Pantoufles: up 435 days, 14:55 -- gentoo-user@lists.gentoo.org mailing list -- Amar Ćosić [EMAIL PROTECTED] [EMAIL PROTECTED] +38761240095 http://www.amar.co.ba
Re: [gentoo-user] [nb] How to change permission on this
Neil Bothwick wrote: On Sat, 16 Feb 2008 08:22:19 -0800, Brian Marshall wrote: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks With recursion: chown -R user:group * That won't cover hidden files, try chown -R user: ~user Neil, What does the ~ make it do different? Got me curious about that. Dale :-) :-) -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [nb] How to change permission on this
On Saturday 16 February 2008, Dale wrote: Neil Bothwick wrote: On Sat, 16 Feb 2008 08:22:19 -0800, Brian Marshall wrote: I have a lot of dir. and files in my home directory. I want to chown all of it to my user. How to do this by one comand ? Thanks With recursion: chown -R user:group * That won't cover hidden files, try chown -R user: ~user Neil, What does the ~ make it do different? Got me curious about that. Change user only for those files that have a different one. Avoids unnecessary writes. Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [nb] How to change permission on this
Uwe Thiem wrote: On Saturday 16 February 2008, Dale wrote: Neil Bothwick wrote: chown -R user: ~user What does the ~ make it do different? Change user only for those files that have a different one. No. The ~ prefixed to a user name means the home dir of that user as it is listed in /etc/passwd. Benno -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [nb] How to change permission on this
On Sat, 16 Feb 2008 10:50:37 -0600, Dale wrote: With recursion: chown -R user:group * That won't cover hidden files, try chown -R user: ~user What does the ~ make it do different? Got me curious about that. Nothing in itself, it just refers to the user's home directory. The important point is that giving a directory matces all files in that directory, whereas * omits those beginning with a . in most people's shells. -- Neil Bothwick Strangely enough, Data finds himself relating to Heavy Metal. signature.asc Description: PGP signature
Re: [gentoo-user] [nb] How to change permission on this
On Sun, Feb 17, 2008 at 12:52:05AM +, Neil Bothwick wrote: On Sat, 16 Feb 2008 10:50:37 -0600, Dale wrote: With recursion: chown -R user:group * That won't cover hidden files, try chown -R user: ~user What does the ~ make it do different? Got me curious about that. Nothing in itself, it just refers to the user's home directory. The important point is that giving a directory matces all files in that directory, whereas * omits those beginning with a . in most people's shells. * also omits the home directory itself. It probably wouldn't matter in this case, but if you copied a user's home directory from one machine to another where the uid changed, it would apply. -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman rocket surgeon / [EMAIL PROTECTED] GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [nb] How to change permission on this
[EMAIL PROTECTED] wrote: On Sun, Feb 17, 2008 at 12:52:05AM +, Neil Bothwick wrote: On Sat, 16 Feb 2008 10:50:37 -0600, Dale wrote: With recursion: chown -R user:group * That won't cover hidden files, try chown -R user: ~user What does the ~ make it do different? Got me curious about that. Nothing in itself, it just refers to the user's home directory. The important point is that giving a directory matces all files in that directory, whereas * omits those beginning with a . in most people's shells. * also omits the home directory itself. It probably wouldn't matter in this case, but if you copied a user's home directory from one machine to another where the uid changed, it would apply. So it is like typing in the command cd ~ and it takes you to the home directory. Gotcha. Kewl. :-D Wonder why that didn't hit me when I read it? Dale :-) :-) :-) -- gentoo-user@lists.gentoo.org mailing list