LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   useradd problem (on RHEL3) (https://www.linuxquestions.org/questions/linux-security-4/useradd-problem-on-rhel3-225741/)

nuthead 09-02-2004 11:20 AM

useradd problem (on RHEL3)
 
Im having an incredibly annoying problem with trying to add a user to my linux box.

I'm trying to add a user who can just log into one directory on my server in order to upload files to my website. First of all the directory i specify gets full of files I dont want to be there and second of all I cant log on to either FTP or SSh using that account.

When logging on through SSH I get:

Could not chdir to home directory /home/httpd/vhosts/mysite.co.uk/httpdocs/rants: Permission denied
-bash: /home/httpd/vhosts/mysite.co.uk/httpdocs/rants/.bash_profile: Permission denied
-bash-2.05b$


when logging on through FTP i get:

530 Login incorrect


i have tried alsorts, i have chowned the directory, chmodded it, deleted it and let useradd create it, alsorts of stuff! Please help!

For reference the command i used to add the account was:

useradd adam -d /home/httpd/vhosts/mysite.co.uk/httpdocs/rants -g psacln -m -s /bin/bash

serz 09-02-2004 12:27 PM

It's a permission problem....

What's the output of ls -ld /home/httpd/vhosts/mysite.co.uk/httpdocs/rants

The user must at least have group permissions if that directory is owned by its group.

nuthead 09-02-2004 12:30 PM

the output i get is:

Code:

drwxrwx---    4 adam    psacln      4096 Sep  2 16:52 /home/httpd/vhosts/mysite.co.uk/httpdocs/rants

nuthead 09-03-2004 12:57 PM

anyone at all able to help?

nuthead 09-04-2004 12:10 PM

bump


All times are GMT -5. The time now is 10:29 PM.