Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Im pretty new to Linux and wondered if someone could help me out with this....
I have a Debian Box with Webmin Installed and have created a new user account pa-admin using:
adduser $username
passwd $username
I have then configured apache to resolve the site and everything is working as should...Execept when I try to create files under the new user account or upload via ftp to this account.
I get a permission denied so Im guessing I havent got the permissions setup right for the user account pa-admin?
If thats the case how do i do this so i am able to create/upload files using the new account.
Hello and welcome to Linux Questions.
If you are wanting to write to a directory other than the users home directory, permissions must be set on that particular folder. If you mean you cant write to your home folder, I have never come across this so I am sorry I cant offer any help on that.
When you say you try to ftp and are unable to, do you mean your connection is accepted and then you are unable to write to a folder or you are unable to ftp? If it is the latter I would suggest maybe looking at a setting within the ftp daemon such as allowing connections from local users. If you can connect and unable to write, maybe a folder permission or again a setting in the daemon.
Hello and welcome to Linux Questions.
If you are wanting to write to a directory other than the users home directory, permissions must be set on that particular folder. If you mean you cant write to your home folder, I have never come across this so I am sorry I cant offer any help on that.
When you say you try to ftp and are unable to, do you mean your connection is accepted and then you are unable to write to a folder or you are unable to ftp? If it is the latter I would suggest maybe looking at a setting within the ftp daemon such as allowing connections from local users. If you can connect and unable to write, maybe a folder permission or again a setting in the daemon.
I hope I helped some, and sorry if I am wrong.
Sorry I should have been more specific.
I can acess my FTP fine. I just cant seem to upload or create anything with the new users account /home/pa-admin/ or /home/pa-admin/htdocs/
If you created the user account and password with the dollar sign ($) as listed, they probably don't exist. You use the $ when trying to recall the value of the variable, not when setting the value. In such a case, you would get the 'permission denied' message because the account doesn't exist.
Try again, as:
adduser username
passwd username
As far as the permissions, if you want root and user to have read/write/execute permissions, but restrict permissions to others, 'chmod 770 pa-admin' (as root user). You may have to specify the full path to the pa-admin file.
If you created the user account and password with the dollar sign ($) as listed, they probably don't exist. You use the $ when trying to recall the value of the variable, not when setting the value. In such a case, you would get the 'permission denied' message because the account doesn't exist.
Try again, as:
adduser username
passwd username
As far as the permissions, if you want root and user to have read/write/execute permissions, but restrict permissions to others, 'chmod 770 pa-admin' (as root user). You may have to specify the full path to the pa-admin file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.