Changing user's home directory? HOW
I want to change a user's home account directory:
/home/upload/ to /var/www? How do I do this? I have spent time with google and manuals. I apologize if this ridiculous question. This must me easily solved in some config file. I just don't know which one. -mike |
I don't get it, you want to configure Apache in a way so that the upload dir shows up on a webpage? You could change /etc/apache/httpd.conf as well. I hope you don't mean to move an entire home dir of a user?? I don't see why you should want this.
|
/etc/passwd
|
Quote:
"/etc/apache/httpd.conf " - I will look into this aswell. Thanks for the input. -mike |
What has changing the password to do with moving a home dir?
|
Entries in the /etc/passwd file specify where the user's home directory is. For example, on my system:
Code:
boone:x:1000:1000:Keith Boone,,,:/home/boone:/bin/bash http://www.scit.wlv.ac.uk/cgi-bin/mansec?4+passwd |
thx, another enlightenment :)
|
is there a command line method without running the risk of ruining the /etc/passwd file?
|
Quote:
|
Quote:
This allows safe editing of /etc/passwd and automatically creates a backup (/etc/passwd~) if changes are made....... NOTE: To change the default editor from vi, make sure you enter an environment variable, called VISUAL and/or EDITOR, in your bash profile (or /etc/profile for system-wide defaults) and export it..........For example, I like mcedit (command line text editor bundled with the Midnight Commander package, or mc), and have entered these entries in /etc/profile: Code:
EDITOR="/usr/bin/mcedit-debian" Quote:
|
usermod -d /home/directory
was the other method i was looking for. i didnt want to edit the file directory. Working on live boxes, changing files like that can lead to distruction and death. |
All times are GMT -5. The time now is 02:50 PM. |