LinuxQuestions.org
Help answer threads with 0 replies.
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 04-27-2009, 12:18 PM   #1
Mass Zero
LQ Newbie
 
Registered: Apr 2009
Location: Amsterdam, NL
Distribution: CentOS
Posts: 6

Rep: Reputation: 0
(Resolved) User access beyond its home


Hey,

I'm pretty new to Linux, so excuse me if I say anything totally weird. :P

I'm running iroffer, a bot that connects to IRC and allows file transfers through DCC, on my VPS. (From a user, not root.) The application has a function which creates a txt file with all available files for download and by default dumps it in the same folder as the executable's location. That's all good, but I'd rather have it dump the file in Apache's html folder, so it's viewable online. When I set the configuration file to dump the file in /var/www/html... the file doesn't get created! I'm guessing there's just no permissions for it. But, can it be made so that there are permissions for it?

I'm not sure if this info's needed, but I'm running CentOS 5.

Thanks in advance for any answers!

Last edited by Mass Zero; 04-27-2009 at 07:25 PM.
 
Old 04-27-2009, 12:35 PM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
by default you /var/www/html folder will be set to root:root as the user:group owner.
You said that 'iroffer' is running under a user account not root. Who is that user account? Assuming the user is 'USER1' you could set the permissions of /var/www/html as follows:
`chown -R USER1:USER1 /var/www/html`

Instead You could also just allow /var/www/html to be writable by anyone with:
`chmod -R 777 /var/www/html`

Though, I don't know that you really want this folder to be writable by everyone.
 
Old 04-27-2009, 12:41 PM   #3
Mass Zero
LQ Newbie
 
Registered: Apr 2009
Location: Amsterdam, NL
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zQUEz View Post
by default you /var/www/html folder will be set to root:root as the user:group owner.
You said that 'iroffer' is running under a user account not root. Who is that user account? Assuming the user is 'USER1' you could set the permissions of /var/www/html as follows:
`chown -R USER1:USER1 /var/www/html`

Instead You could also just allow /var/www/html to be writable by anyone with:
`chmod -R 777 /var/www/html`

Though, I don't know that you really want this folder to be writable by everyone.
Thanks, though what are the "dangers" of setting the write permissions globally? I'm the only one with access to the shell, so could there possibly also be danger from outside?
 
Old 04-27-2009, 03:45 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'd recommend against that, specially if you're ever going to host up
anything other than that file. One way would be to just allow users
to publicise html in their home (using apache's public_html feature).



Cheers,
Tink
 
Old 04-27-2009, 07:11 PM   #5
Mass Zero
LQ Newbie
 
Registered: Apr 2009
Location: Amsterdam, NL
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
I'd recommend against that, specially if you're ever going to host up
anything other than that file. One way would be to just allow users
to publicise html in their home (using apache's public_html feature).



Cheers,
Tink
Alright, that's a good one. Thanks, both of you, you've really helped me.
 
  


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
proftpd allow user to access different home dirs skylimit123 Linux - Software 1 11-26-2008 03:59 AM
Linux Distro for Intermediate User with -NO- Internet Access at home mpa Linux - Distributions 5 10-17-2008 05:39 AM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 03:00 PM
Access to /home/user and https issues adamrg Mandriva 3 03-13-2005 03:45 PM


All times are GMT -5. The time now is 09:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration