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
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:
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
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
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
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
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
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.
--
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
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?
---
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
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
#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 '
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
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
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
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
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
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
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]
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
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
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?
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
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
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
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
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
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
>
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
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
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,
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
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
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
35 matches
Mail list logo