LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-02-2004, 11:20 AM   #1
nuthead
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
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
 
Old 09-02-2004, 12:27 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
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.
 
Old 09-02-2004, 12:30 PM   #3
nuthead
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
the output i get is:

Code:
drwxrwx---    4 adam     psacln       4096 Sep  2 16:52 /home/httpd/vhosts/mysite.co.uk/httpdocs/rants
 
Old 09-03-2004, 12:57 PM   #4
nuthead
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
anyone at all able to help?
 
Old 09-04-2004, 12:10 PM   #5
nuthead
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
bump
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
diskless boot problem with RHEL3 client VMSlives Red Hat 1 09-29-2005 07:38 AM
.htaccess problem on httpd/2.0.46 on RHEL3 bmorel Linux - Software 3 05-22-2005 06:50 PM
useradd problem ruben0076 Linux - Newbie 4 01-11-2005 11:28 AM
useradd problem giovannym Linux - Newbie 4 06-23-2004 07:59 PM
useradd problem scatcat Linux - Newbie 3 06-21-2002 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration