LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 09-18-2023, 07:02 AM   #1
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Rep: Reputation: Disabled
Problem - Changing general user name via terminal as root possible?


Hi everyone,

Ran into a bit of a problem with MX today. The default installation of MX via my personal image on any of my machines always has the same user name installed by default. That user has root and general privileges because it is intended for that user to be the only user on that particular computer.

So we're on vacation and I wanted to transfer some files from a downstairs computer with MX to an upstairs computer with MX by means of Dukto which I really like for local file transfers. But I hadn't previously thought about the fact that an issue might arise when attempting to transfer files between machines which had the same user name ... even though the IP number on each machine is obviously *NOT* the same. Because of this (same user names), Dukto did not want to cooperate.

No problem, open up MX Tools, go to the user Manager, then change user name of one user to another name in order to get Dukto to work by finally recognizing two different users. Nope, couldn't be done. Why? Because MX gave me an error message that I couldn't change the exiting user name while being logged into that account. Message requires logging out and then in again as a different user.
Okay, that makes sense.
So I log out and then in again as root into the system.
Totally different screen layout, options, etc. since the root user is ??? a different user.
Back to MX tools, change user name, select the desired user from the drop down menu ... nope, still no go.
Can't be logged in as root, have to log out and then back in as a different standard ??? user. Huh, say what ???

Okay, so now I'm getting frustrated. What's the point of having a root user (God account) if the root user isn't permitted to do anything and everything on the machine?

I don't want to create an entire new user account just for the sake of moving a few files back and forth. That seems a bit redundant to me. Is there some way of accomplishing the change of a user name via the terminal after being logged into the root account again? It would seem to me that a root user within a root account should be able to accomplish this .... Or alternatively is there an App which accomplishes the same thing that Dukto does, but instead of using the user names an app which uses the IP number on a machine instead?
Hmmm, perhaps filezilla on a local level?
Thanks for any assistance.
 
Old 09-18-2023, 08:49 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,743

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
I don't use dukto so I am not familiar with how it works but I don't know why you would need to change usernames.

From the command line there is sftp and rsync. Both use ssh as the underlying network protocol. sshfs is a fuse filesystem that lets you "mount" a remote filesystem using sftp as the underlying transfer protocol. Since fuse is a user tool you do not need to be root to mount via sshfs.

I more used to using the command line versus GUI tools and changing names is accomplished using usermod.
 
Old 09-18-2023, 09:49 AM   #3
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
Thanks. What I'm trying to avoid is having to type individual long file names since we're talking about only a handful of files at a time, that I keep moving back & forth between desktops. So being able to simply drag & drop the files where they should go is just really practical as well as really fast.
 
Old 09-18-2023, 10:18 AM   #4
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 299

Original Poster
Rep: Reputation: Disabled
Alright, PROBLEM SOLVED ... by simply adding an FTP session with FileZilla to each machine with the corresponding IP number. That accomplishes the same thing as Dukto by allowing me to transfer files back and forth from desktop to desktop. Really simple process too.
Within FileZilla: Add a new name for a remote location ...
Then enter the IP number of the remote machine user ...
Followed by adding the user name and pwd of remote machine ...
Vice versa on the second computer ...
And start transferring files.

The default start location is generally /home/user but you can change that and even save those changes within the advanced FileZilla settings. For me, each location from either machine defaults to the desktop now (/home/user/Desktop) which works best for me.
Cheers.

Last edited by LinWinux; 09-18-2023 at 10:21 AM.
 
Old 09-18-2023, 10:31 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,743

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
It should default to sftp but great that it is working for you. While I use it on Windows I don't think about on linux since there are many other options.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Disable SSH root Login And Permit The root User Via su User In Linux LXer Syndicated Linux News 0 04-14-2019 07:28 AM
Everytime login subject in the UID name changes sometimes root sometimes the user name x on CentOS radeon45 CentOS 4 12-07-2018 01:56 AM
[SOLVED] Everytime login subject in the UID name changes sometimes root sometimes the user name x radeon45 SUSE / openSUSE 9 09-25-2018 10:16 PM
Windows user name same as samba user name remusb Linux - Server 2 05-30-2018 12:05 AM
mounting hardrive via non-root and using it via non-root Paridoth Mandriva 1 11-03-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration