Re: change user id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 5, 2018 at 7:38 PM, Ranjan Maitra <maitra@xxxxxxxxx> 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 <username>
>
> However, when I do this, I get:
>
> usermod: user <username> is currently used by process 866
>
> 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.
>
> Separately, I want all my files and directory owned by 1000 to move to
> this user id (so that I can have access)? Is this automatic or do I
> have to run chown -R <username> etc?

Create a different sudo-able account and run "sudo usermod ..." from it.

>From "man usermod":

You must make certain that the named user is not executing any processes
when this command is being executed if the user's numerical user ID, the
user's name, or the user's home directory is being changed. usermod
checks this on Linux. On other platforms it only uses utmp to check if
the user is logged in.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux