View previous topic :: View next topic |
Author |
Message |
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Thu Aug 25, 2016 12:39 pm Post subject: Change user name due to nfs drive |
|
|
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 |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Thu Aug 25, 2016 1:18 pm Post subject: |
|
|
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 |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Thu Aug 25, 2016 1:34 pm Post subject: |
|
|
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 |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Thu Aug 25, 2016 2:48 pm Post subject: |
|
|
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 |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Thu Aug 25, 2016 4:01 pm Post subject: |
|
|
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 |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Thu Aug 25, 2016 8:12 pm Post subject: |
|
|
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? That said, what's the difficulty changing the user name? You have been here for 13 years ... |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Thu Aug 25, 2016 8:35 pm Post subject: |
|
|
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 |
|
|
|