LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2004, 09:38 AM   #1
DHR
LQ Newbie
 
Registered: Sep 2004
Location: UK
Posts: 14

Rep: Reputation: 0
Navigation rights...


Hi, i'm running SUSE 9.1. Basically my htdocs folder for apache is located in srv/www/htdocs

The owner of this folder is a user called "webupload" it belongs to the group "www".

When i ssh to the server using the webupload account (it's also used to access the htdocs directory via pureftp) you can actually access folders above srv/www/htdocs for example, by typing /etc/ you can get directly to the directory without question!!?!?!

Is there anyway of stopping this the only person i want to be able to do this is root.

Thanks.
 
Old 09-12-2004, 10:03 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
change the ownership of the respective directory using the chmod command
man chmod
for details
 
Old 09-12-2004, 10:28 AM   #3
DHR
LQ Newbie
 
Registered: Sep 2004
Location: UK
Posts: 14

Original Poster
Rep: Reputation: 0
Sorry i don't understand?

Eventhing about /srv/www/ is owned by root so as far as i was aware webupload shouldn't be able to get above these directorys. It's fine in pureftp not when you ssh on though.

edit: in it's present state webupload can view some config files etc.

Last edited by DHR; 09-12-2004 at 10:30 AM.
 
Old 09-12-2004, 01:32 PM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Code:
#chmod ugo-rwx FILENAME
this will revoke Read, Write, or Exe priviledges from everyone but root. Only root will be able to read/modify this file now. Understand this may have adverse effects on your webserver, and I really don't know what, as I don't run a web server. This is up to your discretion.
 
  


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
Can any one tell me how to se Navigation metaphor as default? linuxnoobie2004 Fedora 5 02-06-2005 01:11 PM
Navigation .. winsnomore LQ Suggestions & Feedback 0 11-16-2004 03:10 PM
Navigation Pls br_sriram Linux - Networking 0 09-26-2004 11:00 AM
xmms navigation edsmithers Linux - Software 0 07-24-2003 01:12 AM
file navigation yenonn Linux - Newbie 2 02-26-2003 02:36 AM


All times are GMT -5. The time now is 11:26 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