Re: change user id

2018-03-09 Thread Tom H
On Mon, Mar 5, 2018 at 7:38 PM, Ranjan Maitra wrote: > > I am on a single-account F27 system with an user id 1000. I want to > change this user id. From what I understand, I should do the following: > > sudo usermod -u 54321 > > However, when I do this, I get: > > usermod: user

Re: change user id

2018-03-07 Thread Tim
On Wed, 2018-03-07 at 07:33 -0400, George White wrote: > At work we have assigned user and group IDs. Users often install > Linux using defaults and wonder why NFS won’t let them see their > files. I had another dabble with Ubuntu, the other day. Its user add GUI configurator didn't have any way

Re: change user id

2018-03-07 Thread George White
> On Mar 6, 2018, at 2:19 PM, Tony Nelson wrote: > >> On 18-03-05 21:30:17, Bill Shirley wrote: >> ... >> 5) run: >> sudo find / -xdev -uid 1000 -exec chown bob {} \; > ... > > I've done (something like) as root: > >chown --recursive --no-dereference

Re: change user id

2018-03-06 Thread Tony Nelson
On 18-03-05 21:30:17, Bill Shirley wrote: ... 5) run:   sudo find / -xdev -uid 1000 -exec chown bob {} \; ... I've done (something like) as root: chown --recursive --no-dereference --from=1000 bob /home/bob/ chown --recursive --no-dereference --from=:1000 :bob /home/bob/ --

Re: change user id

2018-03-06 Thread Rick Stevens
On 03/05/2018 06:30 PM, Bill Shirley wrote: > I've done this many times but always from root. I've not tried it for this sort of thing, but "sudo bash -l" SHOULD make a non-root user behave as root (including root's environment). > With no root account, I would: > 1) create a 2nd user 'test',

Re: change user id

2018-03-06 Thread Juan Martinez
On Tue, Mar 06, 2018 at 12:42:33AM -0800, Joe Zeff wrote: On 03/05/2018 08:07 PM, Ranjan Maitra wrote: Actually, it may well be a security feature. Note that all systems used to be expected to have a root, an account name that is easy to guess with 100% accuracy. Not having root removes the

Re: change user id

2018-03-06 Thread Joe Zeff
On 03/05/2018 08:07 PM, Ranjan Maitra wrote: Actually, it may well be a security feature. Note that all systems used to be expected to have a root, an account name that is easy to guess with 100% accuracy. Not having root removes the surest account on any system. There's nothing stopping you

Re: change user id

2018-03-06 Thread Joe Zeff
On 03/05/2018 08:05 PM, Cameron Simpson wrote: You can always give root a password if this disturbs you, but it immediately closes off the whole "I log in as root all the time" issue that plagues naive users on home systems, and also closes off the whole "ssh in as root on a shiny new system

Re: change user id

2018-03-05 Thread Ranjan Maitra
On Mon, 5 Mar 2018 19:45:48 -0800 Joe Zeff wrote: > On 03/05/2018 07:41 PM, Ranjan Maitra wrote: > > Thanks! If you don't fill in the Root section, then root is not set. I do > > that since the time we have had this option and set myself up as a > > superuser. > > > I had no

Re: change user id

2018-03-05 Thread Cameron Simpson
On 05Mar2018 19:45, Joe Zeff wrote: On 03/05/2018 07:41 PM, Ranjan Maitra wrote: Thanks! If you don't fill in the Root section, then root is not set. I do that since the time we have had this option and set myself up as a superuser. I had no idea it would let you do that, and

Re: change user id

2018-03-05 Thread Joe Zeff
On 03/05/2018 07:41 PM, Ranjan Maitra wrote: Thanks! If you don't fill in the Root section, then root is not set. I do that since the time we have had this option and set myself up as a superuser. I had no idea it would let you do that, and personally, I consider it a bug.

Re: change user id

2018-03-05 Thread Ranjan Maitra
On Mon, 5 Mar 2018 19:20:42 -0800 Joe Zeff wrote: > On 03/05/2018 04:38 PM, Ranjan Maitra wrote: > > I guess that this has to do with the fact that I am logged in (to do this). > > How do I get around this point? There is no root on the system but I do > > have sudo access. > >

Re: change user id

2018-03-05 Thread Joe Zeff
On 03/05/2018 04:38 PM, Ranjan Maitra wrote: I guess that this has to do with the fact that I am logged in (to do this). How do I get around this point? There is no root on the system but I do have sudo access. Part of installing Fedora is setting the root password, and anaconda won't let

Re: change user id

2018-03-05 Thread Bill Shirley
I've done this many times but always from root. With no root account, I would: 1) create a 2nd user 'test', set a password, and make 'test' a sudo user 2) logout and login as 'test' 3) let's say the user to change is 'bob' with id 1000 grep bob /etc/passwd   should yield:

Re: change user id

2018-03-05 Thread Cameron Simpson
On 05Mar2018 18:38, Ranjan Maitra wrote: I am on a single-account F27 system with an user id 1000. I want to change this user id. From what I understand, I should do the following: sudo usermod -u 54321 However, when I do this, I get: usermod: user is currently used by

change user id

2018-03-05 Thread Ranjan Maitra
Hi, I am on a single-account F27 system with an user id 1000. I want to change this user id. From what I understand, I should do the following: sudo usermod -u 54321 However, when I do this, I get: usermod: user is currently used by process 866 I guess that this has to do with the fact