Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

can only login via ssh or ftp as root

  • 11-08-2006 4:39pm
    #1
    Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭


    My linux skills are a little rusty and I'm trying to setup a standard ftp user.

    I've install vsftpd, added a user called ftpuser in a group called ftpuser with a simple password.

    Setup their home/default directory just outside the htdocs directory, and given them ownership of the directory.

    But I'm just getting permission denied when I enter the password for both ssh and ftp access for the new user.

    Is there anything else I need to do?

    This is doing my head in!


Comments

  • Registered Users, Registered Users 2 Posts: 378 ✭✭sicruise


    FTP and SSH generally use the unix users...

    Did you create a user in the application or using adduser?


  • Registered Users, Registered Users 2 Posts: 5,335 ✭✭✭Cake Fiend


    Can you log in as 'nobody'? Try setting a password for that user (assuming it exists).

    Make sure you have 'local_enable' set to 'YES' for regular local users to be able to login (and of course set 'anonymous_enable' to 'NO').

    For safety, I'd recommend chrooting the login: set 'chroot_local_user' to 'YES'.


  • Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭colm_c


    I used adduser command while sshing into the box as root.

    For local_enable I assume your talking about the config file for vsftpd... That's done already.

    Do I need give a user permission in some file to login via ssh?


  • Registered Users, Registered Users 2 Posts: 5,335 ✭✭✭Cake Fiend


    colm_c wrote:
    Do I need give a user permission in some file to login via ssh?

    Not that I remember, can you login as root OK?

    Edit: I'm a moron, never mind...


  • Registered Users, Registered Users 2 Posts: 865 ✭✭✭generalmiaow


    the initial vsftpd settings are very restrictive, could you post your vsftpd.conf or part of it so we can compare? or what error mesage do you get trying to log in? vsftpd does use the unix accounts. make sure they have a home directory if you are allowing them to login to vsftpd, I get an error if I try to ftp in and there's nowhere for me to go.

    [edit: now I'm a moron, you already said the user has a homedir] (note: you say their homedir is just outside the htdocs folder, do you mean they have homedirs as /var/ftpuser ? try giving them /home/ftpuser , maybe having a homedir in /var is problematics.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭colm_c


    I've created a uer with the standard home directory and one with the directory of just outside the htdocs/www directory and still the same issue.

    Is there anything in SELinux that I need to change to allow people to login? It seems to be setup on this box, and I've checked the last box I worked on that users could login with ssh and ftp and it doesn't have it installed... so maybe?

    Any ideas what config I need to change?


  • Registered Users, Registered Users 2 Posts: 865 ✭✭✭generalmiaow


    well, there is /etc/ssh/sshd_config - but seen as you seem to have set vsftpd.conf correctly, it doesn't seem to be a separate problem for each. what is the exact error message, is it "Permission denied (publickey,password)." such as you get when you enter an incorrect username 3 times?


Advertisement