Re: Changing user while being root will leave you to the root homedir.

2019-03-19 Thread Qiming Ye
Have you tried: # su - chomwitt - Qiming On 2019-03-19 10:57+0200, aprekates wrote: > In a new debian 9.8 installation i noticed that: > > root@s165:~# pwd > /root > > root@s165:~# su chomwitt > chomwitt@s165:/root$ > > ..and from there i cant even execute ls. > > $ man ls > man: can't chan

Re: Changing user while being root will leave you to the root homedir.

2019-03-19 Thread aprekates
Thanks. It worked. Although its still strange why debian 9.8 behaves differently when i execute su foouser as root. On 19/3/19 11:21 π.μ., Qiming Ye wrote: Have you tried: # su - chomwitt - Qiming On 2019-03-19 10:57+0200, aprekates wrote: In a new debian 9.8 installation i noticed that:

Re: Changing user while being root will leave you to the root homedir.

2019-03-19 Thread Reco
Hi. On Tue, Mar 19, 2019 at 10:57:04AM +0200, aprekates wrote: > In a new debian 9.8 installation i noticed that: > > root@s165:~# pwd > /root > > root@s165:~# su chomwitt > chomwitt@s165:/root$ > > ..and from there i cant even execute ls. It's expected, su(1) says that: The current e

Re: changing user password on KDE 4.4 (was: How 'stable' is squeeze?)

2010-06-24 Thread John A. Sullivan III
On Thu, 2010-06-24 at 09:03 +0200, Florian Kulzer wrote: > On Wed, Jun 23, 2010 at 23:34:38 -0400, John A. Sullivan III wrote: > > [...] > > > However, I still do not see a way to > > change passwords as an ordinary user. How does an ordinary user who > > does not use the command line (and thus

Re: changing user id for all files in a file system (corrected)

2006-06-15 Thread Nyizsnyik Ferenc
On Thu, 2006-06-15 at 16:00 +0100, George Borisov wrote: > Stephen R Laniel wrote: > > > > That has to do with what's in /etc/sudoers, I imagine. When > > I've gotten that error, it's meant that sudoers is > > configured to only let me run one or two commands. > > By default it's not configured t

Re: changing user id for all files in a file system

2006-06-15 Thread George Borisov
Stephen R Laniel wrote: > > Do you mean that by default, people aren't sudoers? That's > certainly correct. But if you're not a sudoer, then you > probably don't have the root password either -- in which > case it will be impossible for you to run any command > featuring 'find /'. What I mean is

Re: changing user id for all files in a file system (corrected)

2006-06-15 Thread Stephen R Laniel
On Thu, Jun 15, 2006 at 04:00:49PM +0100, George Borisov wrote: > By default it's not configured to allow you to run any at all, which is > what I originally meant. Do you mean that by default, people aren't sudoers? That's certainly correct. But if you're not a sudoer, then you probably don't hav

Re: changing user id for all files in a file system (corrected)

2006-06-15 Thread George Borisov
Stephen R Laniel wrote: > > That has to do with what's in /etc/sudoers, I imagine. When > I've gotten that error, it's meant that sudoers is > configured to only let me run one or two commands. By default it's not configured to allow you to run any at all, which is what I originally meant. --

Re: changing user id for all files in a file system (corrected)

2006-06-15 Thread Stephen R Laniel
On Thu, Jun 15, 2006 at 12:50:52PM +0100, George Borisov wrote: > Sorry, user george is not allowed to execute '/usr/bin/find / -uid 1000' > as root on dxs-wksd-195. That has to do with what's in /etc/sudoers, I imagine. When I've gotten that error, it's meant that sudoers is configured to only le

Re: changing user id for all files in a file system (corrected)

2006-06-15 Thread George Borisov
I hate not being able to copy/paste between my two machines :-( Stephen R Laniel wrote: > > On Thu, Jun 15, 2006 at 11:21:24AM +0100, George Borisov wrote: >> >> (I've removed the 'sudo' bits, as it would not work with the default >> setup.) > > I'm not sure what you mean. Can you elaborate? ---

Re: changing user id for all files in a file system

2006-06-15 Thread George Borisov
Stephen R Laniel wrote: > On Thu, Jun 15, 2006 at 11:21:24AM +0100, George Borisov wrote: >> (I've removed the 'sudo' bits, as it would not work with the default >> setup.) > > I'm not sure what you mean. Can you elaborate? --- $ find / -uid OLDUID | xargs -I [] chown NEWUID [] Password: Sorry, u

Re: changing user id for all files in a file system

2006-06-15 Thread Stephen R Laniel
On Thu, Jun 15, 2006 at 11:21:24AM +0100, George Borisov wrote: > (I've removed the 'sudo' bits, as it would not work with the default > setup.) I'm not sure what you mean. Can you elaborate? -- Stephen R. Laniel [EMAIL PROTECTED] Cell: +(617) 308-5571 http://laniels.org/ PGP key: http://laniels

Re: changing user id for all files in a file system

2006-06-15 Thread Eduard Bloch
#include * George Borisov [Thu, Jun 15 2006, 11:21:24AM]: > Stephen R Laniel wrote: > > > > sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}' > > Thanks for introducing me to the xargs command - never heard of it > before, but I am sure it will come in handy some day. :-) > > The '

Re: changing user id for all files in a file system

2006-06-15 Thread George Borisov
Johannes Zellner wrote: > > is there a simple and fast way to change the user id for all files in > the file system, say from 1234 to 5000? You can use a simple bash script. Try (as root:) for f in `find / -uid OLDUID`; do chown NEWUID $f; done Hope this helps, -- George Borisov DXSolutions

Re: changing user id for all files in a file system

2006-06-15 Thread George Borisov
Stephen R Laniel wrote: > > sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}' Thanks for introducing me to the xargs command - never heard of it before, but I am sure it will come in handy some day. :-) The '-i' option is deprecated in xargs from unstable, though. Alternative seems

Re: changing user id for all files in a file system

2006-06-14 Thread hendrik
On Wed, Jun 14, 2006 at 05:16:05PM -0400, Stephen R Laniel wrote: > On Wed, Jun 14, 2006 at 05:07:35PM -0400, [EMAIL PROTECTED] wrote: > > chown --recursive onion: foo > > > > will change the owners of all the files in the foo file-tree to onion, > > and change their gropu IDs accordingly. Leave

Re: changing user id for all files in a file system

2006-06-14 Thread Stephen R Laniel
On Wed, Jun 14, 2006 at 05:07:35PM -0400, [EMAIL PROTECTED] wrote: > chown --recursive onion: foo > > will change the owners of all the files in the foo file-tree to onion, > and change their gropu IDs accordingly. Leave off the colons if you > want them to stay in the old group. But this will

Re: changing user id for all files in a file system

2006-06-14 Thread hendrik
On Wed, Jun 14, 2006 at 10:02:43PM +0200, Johannes Zellner wrote: > Hello, > > is there a simple and fast way to change the user id for all files in > the file system, say from 1234 to 5000? chown --recursive onion: foo will change the owners of all the files in the foo file-tree to onion, and

Re: changing user id for all files in a file system

2006-06-14 Thread Stephen R Laniel
On Wed, Jun 14, 2006 at 05:16:25PM -0400, H.S. wrote: > >sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}' > Shouldn't it be followed by a semicolon? Had I done sudo find / -uid [old UID] -exec chown [new UID] '{}' \; then yes. But with xargs, no. -- Stephen R. Laniel [EMAIL PROTE

Re: changing user id for all files in a file system

2006-06-14 Thread H.S.
Stephen R Laniel wrote: sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}' Shouldn't it be followed by a semicolon? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: changing user id for all files in a file system

2006-06-14 Thread Stephen R Laniel
On Wed, Jun 14, 2006 at 10:02:43PM +0200, Johannes Zellner wrote: > is there a simple and fast way to change the user id for all files in > the file system, say from 1234 to 5000? sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}' -- Stephen R. Laniel [EMAIL PROTECTED] Cell: +(617) 3

Re: Changing user

2001-06-25 Thread ktb
On Mon, Jun 25, 2001 at 03:26:32PM +, Victor wrote: > I wonder if there's any command under debian enabling to change the > name of a user to another one modifying -in doing so- everything under > the home dir of the 'old' user to the 'new' one. $ man -k user usermod (8) - Modify a us

Re: Changing user

2001-06-25 Thread Martin Würtele
On Mon, Jun 25, 2001 at 03:26:32PM +, Victor wrote: > I wonder if there's any command under debian enabling to change the > name of a user to another one modifying -in doing so- everything under > the home dir of the 'old' user to the 'new' one. how about editing the user name in /etc/passwd?

Re: Changing user name

2000-05-18 Thread Chanop Silpa-Anan
Once upon a time, I heard Kent West say > Chanop Silpa-Anan wrote: > > > Once upon a time, I heard Brian say > > > > > Cameron Matheson said: > > > > > > >Hey, > > > > > > > >I want to change my user name from fatmike to cmatheson. Is this > > > >possible? > > > > I think the easierway is ed

Re: Changing user name

2000-05-18 Thread Ethan Benson
On Thu, May 18, 2000 at 05:19:09PM -0500, Kent West wrote: > Chanop Silpa-Anan wrote: > > > Once upon a time, I heard Brian say > > > > > Cameron Matheson said: > > > > > > >Hey, > > > > > > > >I want to change my user name from fatmike to cmatheson. Is this > > > >possible? > > > > I think t

Re: Changing user name

2000-05-18 Thread Ethan Benson
On Thu, May 18, 2000 at 03:01:58PM +0200, Robert Waldner wrote: > On Thu, 18 May 2000 07:56:24 CDT, Jesse Jacobsen writes: > >The last time I changed my username, I just left my home directory the > >way it was, to avoid the headache. The names don't *need* to be > >identical. Works fine for me

Re: Changing user name

2000-05-18 Thread Kent West
Chanop Silpa-Anan wrote: > Once upon a time, I heard Brian say > > > Cameron Matheson said: > > > > >Hey, > > > > > >I want to change my user name from fatmike to cmatheson. Is this > > >possible? > > I think the easierway is edit your /etc/password and change username and > home directory fe

Re: Changing user name

2000-05-18 Thread Robert Waldner
On Thu, 18 May 2000 07:56:24 CDT, Jesse Jacobsen writes: >The last time I changed my username, I just left my home directory the >way it was, to avoid the headache. The names don't *need* to be >identical. Works fine for me. Just make sure it's properly reflected >in /etc/passwd. or you just

Re: Changing user name

2000-05-18 Thread Jesse Jacobsen
On 05/18/00, Chanop Silpa-Anan addressed "Re: Changing user name": > Once upon a time, I heard Brian say > > > Cameron Matheson said: > > > > >Hey, > > > > > >I want to change my user name from fatmike to cmatheson. Is this >

Re: Changing user name

2000-05-18 Thread Chanop Silpa-Anan
Once upon a time, I heard Brian say > Cameron Matheson said: > > >Hey, > > > >I want to change my user name from fatmike to cmatheson. Is this > >possible? I think the easierway is edit your /etc/password and change username and home directory feild, you should find it easily :) Then renam

Re: Changing user name

2000-05-18 Thread Brian
Cameron Matheson said: >Hey, > >I want to change my user name from fatmike to cmatheson. Is this >possible? This won't be entirely fool-proof, but... You might try adding the user cmatheson to your system (as root): $ adduser cmatheson Then (as root): $ cd /home $ mv fatmike cmatheson $ ch

Re: changing user name

1999-04-30 Thread Richard Harran
There is also a slightly less hardcore command, usermod, which lets you change login-name, home directory, group, uid, etc, without getting involved with the password file. Eg usermod -l -d -m HTH Rich Marlon Urias wrote: > > Thanks for the help!marlon > > On Thu,

Re: changing user name

1999-04-30 Thread Marlon Urias
Thanks for the help!marlon On Thu, 29 Apr 1999, Debian project development discussion wrote: > On Thu, Apr 29, 1999 at 05:57:46PM -0700, Marlon Urias wrote: > > If I get a user who wants to change only their username how do I go about > > doing a thorough job? Simply changing

RE: changing user name

1999-04-30 Thread Shaleh
On 30-Apr-99 Marlon Urias wrote: > If I get a user who wants to change only their username how do I go about > doing a thorough job? Simply changing the passwd entry doesnt seem to be > the right thing because then all the files with ownership > oldLogin.oldLogin > wont be availabe for user newLog

Re: changing user name

1999-04-30 Thread Debian project development discussion
On Thu, Apr 29, 1999 at 05:57:46PM -0700, Marlon Urias wrote: > If I get a user who wants to change only their username how do I go about > doing a thorough job? Simply changing the passwd entry doesnt seem to be > the right thing because then all the files with ownership > oldLogin.oldLogin > wont