Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Change user name due to nfs drive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Thu Aug 25, 2016 12:39 pm    Post subject: Change user name due to nfs drive Reply with quote

Hello.

Recently I have received my new synology diskstation.
Thus I had to change my user name and id to fit the one of the diskstation.
Now my problem is how I can tell all applications, that my user name has changed,
i.e. also the home directory.

Does anybody know an easy way, not to "sed" all config folders in my home directory?

Thanks in advance.
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Thu Aug 25, 2016 1:18 pm    Post subject: Reply with quote

It sounds like you are trying to break in thru an open door. You do not need to change your user, you can map to a different user using NFS.
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Thu Aug 25, 2016 1:34 pm    Post subject: Reply with quote

What do you mean exactly, changing my clients or the server configuration?

I read, that the synology diskstation nfs server does not provide a nfs mapping.
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Thu Aug 25, 2016 2:48 pm    Post subject: Reply with quote

SSH into it and create a user with matching UID (and GID if you think you need it), done. UID matters, NFS does not care about username.
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Thu Aug 25, 2016 4:01 pm    Post subject: Reply with quote

The command "useradd" does not exist on a synology diskstation.

As I said, my user's name is already changed, that why I was opening this thread.
My nfs drives works like charm. Only some apps are annoyed about he change.
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Thu Aug 25, 2016 8:12 pm    Post subject: Reply with quote

sethleon wrote:
The command "useradd" does not exist on a synology diskstation.

Then adduser maybe? One can add users manually, too, without running any scripts. Not a rocket science, this is only Linux.

sethleon wrote:
As I said, my user's name is already changed, that why I was opening this thread.
My nfs drives works like charm. Only some apps are annoyed about he change.

What a weird solution. What if another user needs access to NAS? :roll: That said, what's the difficulty changing the user name? You have been here for 13 years ...
Back to top
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Thu Aug 25, 2016 8:35 pm    Post subject: Reply with quote

There is no such user adding command, due to the NAS has its special mechanism to add a user incl. ftp, sub, nfs usage.

I have other users, they access the NAS using smb, e.g. from Windows.
Currently I am the only one using nfs, the problem is not renaming and not even my Linux knowledge.
It was a time saving solution to rename the user, because I needed the nfs for work.

Anyway thanks so far.
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum