Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-03-2006, 08:53 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Posts: 4
Rep:
|
unable to create files
Hi,
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.
Thanks in advance.
|
|
|
01-03-2006, 09:00 PM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Not sure how Apache works but, in general, you would need full privilges on the directory in which you want to create a file.
|
|
|
01-03-2006, 09:01 PM
|
#3
|
Member
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676
Rep:
|
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.
|
|
|
01-03-2006, 09:10 PM
|
#4
|
LQ Newbie
Registered: Jan 2006
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by lord-fu
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/
|
|
|
01-03-2006, 09:10 PM
|
#5
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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.
|
|
|
01-03-2006, 09:22 PM
|
#6
|
LQ Newbie
Registered: Jan 2006
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by bigrigdriver
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.
|
That worked Great!
Thankyou very much
|
|
|
All times are GMT -5. The time now is 02:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|