Unix account password question

Posted on 2008-11-05
Medium Priority
Last Modified: 2012-05-05
How do i change an ordinary unix account that has a UID of 0 (root).
I use this only as an FTP login.
Question by:willsherwood
  • 2
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 22885788
strange that you have more than one user with id 0!
You can change the userid by simply editing /etc/passwd and changing it. It's the value after the _second_  colon!
If you can identify files/directories belonging to that user, you can do a 'chown [userid] [file/dir] to make them accessible by the user with the new id.
But be careful and don't accidentally change files/dirs belonging to root!

Author Comment

ID: 22885957
(I don't know what i'm doing, my support folks seem not to be on top of this one)

The goal is to have an FTP account just for my own usage so i can do simple file transfers without having to use putty and shell commands.
The problem they told me was that in order to have FTP permissions for the scope of the one disk that i want (   /home    which contains all the hosting accounts' web sites)
they said i needed to have a root (superuser?) account to accomplish this.

Might there be an alternate strategy?   (that might avoid having two root accounts)

LVL 68

Expert Comment

ID: 22886025
what group(s) do(es)  those files/directories own?
You could ask your support folks to add all those groups to the group set of your userid. If you need write permissions, the files/folders have to be made group-writeable.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question