LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-03-2006, 08:53 PM   #1
spider91112
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
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.
 
Old 01-03-2006, 09:00 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Not sure how Apache works but, in general, you would need full privilges on the directory in which you want to create a file.
 
Old 01-03-2006, 09:01 PM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
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.
 
Old 01-03-2006, 09:10 PM   #4
spider91112
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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/
 
Old 01-03-2006, 09:10 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 01-03-2006, 09:22 PM   #6
spider91112
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to create or delete files on fat32 partition Barrett Linux - Newbie 9 12-21-2005 04:19 PM
Unable to create directories satimis Linux From Scratch 8 07-02-2005 04:48 AM
unable to create files using touch command on remote Win2003 sytem using samba xylo Linux - Networking 4 07-15-2004 10:59 AM
Unable to create directory as user technician Slackware 4 02-15-2004 01:28 AM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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