Unix account password question

Posted on 2008-11-05
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
    LVL 68

    Accepted Solution

    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

    (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

    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now