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

2019-03-19 Thread Qiming Ye
yte %bB?s/%s..?e (END):?pB %pB\%.. (press h for > help or q to quit)$PM Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e > (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=ls(1) pager) > > > In another 9.6 , changing user will put me in the user's home dir. > > Alexandros >

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

2019-03-19 Thread aprekates
*$/D; }' | (cd /root && LESS=-ix8RmPm Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$PM Manual page ls(1) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$ MAN_PN=ls(1) pager) In another 9.6 ,

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

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

2019-03-19 Thread aprekates
r q to quit)$ MAN_PN=ls(1) pager) In another 9.6 , changing user will put me in the user's home dir. Alexandros

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

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

2010-06-24 Thread Florian Kulzer
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 passwd) and does not have the > root password change their password in

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

changing user id for all files in a file system

2006-06-14 Thread Johannes Zellner
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? -- Johannes -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

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?

Changing user

2001-06-25 Thread Victor
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. Vittorio

Re: fetchmail w/ changing user names

2001-03-01 Thread David Purton
On Wed, 28 Feb 2001, hanasaki wrote: > I am running fetchmail to get mail from a remote host and pass it to > exim on my local mailserver > > Q: how can fetchmail get mailfrom [EMAIL PROTECTED] and send it to > [EMAIL PROTECTED] > > It seems that the standard: > fetchmail -u user1 -p A

Re: fetchmail w/ changing user names

2001-02-28 Thread will trillich
On Wed, Feb 28, 2001 at 12:35:00PM -0600, hanasaki wrote: > I am running fetchmail to get mail from a remote host and pass it to > exim on my local mailserver > > Q: how can fetchmail get mailfrom [EMAIL PROTECTED] and send it to > [EMAIL PROTECTED] > > It seems that the standard: > fet

fetchmail w/ changing user names

2001-02-28 Thread hanasaki
I am running fetchmail to get mail from a remote host and pass it to exim on my local mailserver Q: how can fetchmail get mailfrom [EMAIL PROTECTED] and send it to [EMAIL PROTECTED] It seems that the standard: fetchmail -u user1 -p AUTO -k seems to only deliver to [EMAIL PROTECTED]

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

Changing user name

2000-05-17 Thread Cameron Matheson
Hey, I want to change my user name from fatmike to cmatheson. Is this possible? Thanks, Cameron Matheson

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

changing user name

1999-04-30 Thread Marlon Urias
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 newLogin. Thanks for the help.