Ubuntu Servers :: Prevent PHP From Accessing Files Above Wwwroot

Sep 12, 2010

I'm running Apache2 and PHP5, hosting multiple virtual domains on my server. The directories of the domains (/var/www/<domain>) aren't publicly readable, so the websites can't access each others content as the scripts are run using different user accounts. They can, however, access other folders on the system that have public access for any user. I tried using the following PHP code, which listed the filesystem root:

Quote:

<?php
$handle=opendir("../../../..");
while($file=readdir($handle)){
echo $file . "<br/>";
}
?>

I will be hosting sites for other people so I don't want them to be able to access my entire server with PHP. Is there any way i can do this?

View 2 Replies


ADVERTISEMENT

Debian Configuration :: Accessing Wwwroot Content From Apache Server ?

Mar 15, 2011

I have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.

View 14 Replies View Related

Ubuntu Servers :: Accessing Web Files On Scp?

May 14, 2011

I am on Ubuntu 10.04.2 on Amazon EC2.I want to use the Cherokee web server and have it (and php) running under www-data then have the files also owned by www-data. I am only able to ssh and scp into my server using the user ubuntu. This means that I am unable to edit the files.I want to be able to edit the files owned by www-data through ssh/scp.Could you assist me in setting my server to allow me to edit the web files through scp?

View 9 Replies View Related

Fedora Servers :: Web Interface For Accessing Files

Jan 18, 2010

I've set up a FTP server, but now I would also give the ability to users to access file through a web interface, like the ones you can find in many NAS.I there anyone that knows a software that do this? I can't find nothing useful.

View 5 Replies View Related

General :: Prevent Ubuntu / Debian Users From Accessing Apt-get - Downloading From Web?

Apr 21, 2011

Is it possible to have a user in Ubuntu/Debian that does not have access to synaptic, apt-get, dpkg and cannot even download anything from the Web, but has root privileges otherwise?

Original post (above translated by aimar) code...

View 2 Replies View Related

Ubuntu :: Can't Prevent Keyring From Asking For Windows Share Password When Accessing

Oct 3, 2010

I have a Windows share on my network and I protected it with a password. I access it with my Ubuntu desktop, and I saved my password the first time I accessed it. The password is saved in Seahorse (the keyring), but each time I try to access my Windows share, I have to type in my keyring password.Despite trying several tutos, I haven't been able to prevent keyring from asking for my keyring password.

View 9 Replies View Related

Ubuntu Servers :: Prevent Certain Group Of Users From Using Sudo At All

Jul 1, 2011

I have a box with about 30-40 users on it, and I need to prevent a certain group of users from using sudo at all. Is this even possible.

View 4 Replies View Related

Ubuntu Servers :: Accessing From W7 To SAMBA?

Jun 24, 2010

When i set up a samba server, with no users in it, i can access from any pc, except the W7 ones.

I go to start, execute, type "\servershared" and a window pop ups asking for credentials... but i hava none!!!

i found out that user anonymous / no password works out, but its annoying

is there any way to overpass this autenthication??

View 2 Replies View Related

Ubuntu Servers :: Accessing Websever WAN IP From In The Same LAN?

Jul 21, 2010

So i run a ubuntu 8.10 server setup for webhosting. I have my router portforwarding to my servers LAN IP, and i have DNS setup and pointing to my WAN IP.

My host entries are all setup on ubuntu also.

The problem : I can access my server from typing WAN IP address or any of the URLS with webpages hosted on the server, all seems to be working. BUT, i can only access these from OUTSIDE my network. If i try access them within my LAN, i get sent to my routers login page.

I really cant find anything that could be causing this..

View 5 Replies View Related

Ubuntu Servers :: Accessing Webserver From Outside LAN?

Oct 20, 2010

I posted this question a while ago but haven't had any luck getting it answered so I reworded everything to make it more clear. I started an Ubuntu web server on an old work laptop. The purpose of this server is to host a small file-sharing site, a forum, and a wiki. I have no prior experience with command line Ubuntu but am trying to figure this all out.

So far Ive setup the LAMP server, so apache, mysql, and php are installed. Ive also installed phpBB3 and Mediawiki. Both phpBB3 and Mediawiki are able to open from inside my LAN. I also have SSH setup and am able to use putty to manage the server from inside my LAN. Mediawiki runs slow internally but this is a secondary concern.

Externally to the LAN I can access the webserver using SSH(but sometimes it is too slow for anything that opens up such as nano or the SQL password prompt to display and the connection drops). I can also browse to the site and see the default apache welcome message. But I cannot open the mediawiki or phpbb site. Both will sit indefinitely and not open. The access log on the server shows that the request is being passed through though.

View 9 Replies View Related

Ubuntu Servers :: Prevent A BASH Script From Being Called To Run Again Until It Exits

Sep 1, 2011

I'm planning on writing a BASH script for my website's server that will process data from user input via HTML forms, and then write data to the website's HTML documents. My question regards how to deal with the possibility that two users send form information very close to the same time, thus having the BASH script being called again while the first instance of the script has not yet finished.

I don't even know what happens in general when a BASH script is called while it is still running. Even if that is ok, and a new, separate script process is started (or whatever really happens), how am I supposed to prevent issues that could come from two different instances of the script trying to write to the same file at the same time? Is there a way to force the BASH script to finish its work before launching again, in the event of multiple requests?

View 6 Replies View Related

Ubuntu :: Prevent Other Administrator Accounts From Viewing Files?

Mar 9, 2010

I just noticed that even if I remove read and write permission for my files, another user can access those files if they use 'sudo'. The ls -l for the folder containing my file (let's call is myfile') looks like this.

"
Code:
-rw------- 1 username groupname 43 2010-03-09 20:23 myfile
"

I logged into another account I have made for myself (which had admin privileges) and then did

Code:
sudo nano /username/home/myfile

and ... the file was opened and I was able to read it. So what's the point of having user permissions if someone can bypass them by using sudo?

View 9 Replies View Related

Ubuntu Servers :: Accessing Domain Name On Home?

Apr 18, 2010

I am a complete newbie at web servers, so I installed Ubuntu Server and have a LAMP set up. I have gotten dynamic DNS to link to my domain, and that seems to be working. My domain is 6py7.com. If I try to access my domain from within my home network it links me to my router's main page (192.168.2.1). I have my server set up with a static ip at 192.168.2.100 and have port forwarding set up.

Is there something I missed with the setup of this? I can only access my domain if I use a network outside of my home network, but if I am within my home network the domain name links to the router.

View 5 Replies View Related

Ubuntu Servers :: Accessing Lan Via SSH In A Restricted Firewall?

May 5, 2010

I have a computer which has a public IP.My ISP has allowed only port 22 for my machine to be accessed outside from internet.I want rest of my computers which are connected to this machine be accessible via SSH on internet.I can configure IPTABLES to route different ports to internal machines but since ISP has given only one port for the gateway how can I go for it any guesses.I came across some thing reverse SSH tunneling but that has to keep the connection alive all the time at gateway I want my trusted people to be directly able to access the machines on LAN to which they have account to login in this scenario.

View 9 Replies View Related

Ubuntu Servers :: Accessing MySQL Via IP Address

Jul 9, 2010

I need to Install MySql Server somewhere that I can access. Instead on installing it in a Windows box like I have for years, I'm thinking of putting it on a Ubuntu Server box (or virtual machine) instead. Should I do it on a Ubuntu Server or a Ubunto desktop box? I have never installed Ubuntu as a server, is it more or less the same as installing the desktop version? Lastly, is there multiple versions of Ubuntu where one might be more appropriate than another? All I want is a machine that I can access MySql via an IP address. Don't need DHCP, dns, Mail server or anything.

View 4 Replies View Related

Ubuntu Servers :: Accessing The Webmin - This Webpage Is Not Available

Apr 28, 2011

i try to access my webmin but it give me "This webpage is not available." now, webmin is useless for me if i want to uninstall webmin, is some other application will affected (like apache, mysql, etc) ?

View 9 Replies View Related

Ubuntu :: Accessing The Files From Imac (OS X10.6.3)?

May 19, 2010

I am going to install ubuntu on my old PC; it meets the specification. Would I be able to see the files through my imac. Here Is what I am hoping to do. Ubuntu PC is going to have a USB drive with lots of movies. iMac will run ps3mediaserver and hoping to play the files in the USB drive. Well, why don't I just attach the USB drive to iMac? Where is the fun in it? My old PC has a built in TV tuner card, so eventually I want to use that as PVR and play them on using ps3mediaserver.

View 1 Replies View Related

Ubuntu Servers :: Postfix And Prevent Clients To Connect To Port 25 Without Authentication?

Jan 29, 2011

I'm a NOOB setting up Postfix but managed quite well by following the Ubuntu Server guide. I have managed to set it up using SSL but testing a mail client like thunderbird I can also connect to port 25 using no authentication. Connecting using SSL on port 465 by editing "master.cf" file works but 25 i still open.

1. How do I prevent clients to connect to port 25 without authentication?
2. I guess I have to have port 25 open in order to receive mail from the outside world?

View 2 Replies View Related

Ubuntu Servers :: UEC Accessing Mediawiki Demo Appliance

Apr 17, 2010

I have downloaded the Mediawiki demo appliance from UEC store. I have installed it and also it is running. I would like to know how to access the mediawiki demo appliance. I tried accessing it as [URL] but is not accessible.

View 2 Replies View Related

Ubuntu Servers :: Accessing SAMBA Shares Since Upgrade?

May 27, 2010

provide support for a small business that uses Windows machines to access files stored on an Ubuntu server which has just been upgraded from 8.04 to 10.04 (32 bit version). Before the upgrade the users accessed their share by this batch file:

Code:

net use x: \servernamesharename /user:username

This would then prompt the user for his or her password which they would enter to allow them access to the share.Since upgrading to 10.04, the user gets a "system error 58" stating "The specified server cannot perform the requested operation"If the batch file command is changed to:

Code:

net use x: \servernamesharename

The same error message is given. The only work around I have found is to modify the file to read:

Code:

net use x: \servernamesharename /user:username password

This is not ideal at all as it makes the password protection useless.When I performed the upgrade I left the smb.conf unchanged. The smb.conf file is:

Code:

#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the

[code]...

View 7 Replies View Related

OpenSUSE :: Prevent Dolphin From Dropping Files Everywhere

Mar 1, 2011

Is there any way to stop Dolphin from creating .directory files in all my directories when I am viewing hidden files?

I am pressing Alt+. to view hidden files in a directory.

Other file managers seem to do it fine.

View 5 Replies View Related

General :: Prevent SCP From Copying Local Files?

May 17, 2010

I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.

View 1 Replies View Related

General :: Prevent Author New Files Overwrite Changes

Jun 29, 2011

I use software where I have to edit a text file in order to get my custom needs from it. Problem is that when the author puts out an update, it always overwrites my changes and I have to spend hours trying to compare the file, re-edit my changes back in, etc. This happens sometimes as often as once per month.

I've wondered if there might be a linux tool or commands which would look through the new file, then at my old file, changing only the text which already exists while not breaking anything else. Most software authors seem to know how to do this but since mine doesn't, how can I accomplish this on my own?

View 7 Replies View Related

Ubuntu :: Restrict A Certain Program From Accessing Certain Files

Jul 28, 2010

Everytime I start Rhythmbox it starts to scan my USB HardDrive (which contains 50,000+ files) for media. I searched around, and it seems that there is nothing one can do stop that using any Rhythmbox options, switches, etc. Is there a way to prevent a process (in this case Rhythmbox)from using a certain resource (the path to my USB Drive)? I'm thinking APPArmor or SELinux may be the way to do it.

View 2 Replies View Related

Ubuntu Networking :: Accessing Files From Windows 7?

Dec 2, 2010

I am trying to access the files and directories that are on my Ubuntu 10.10 computer from my Windows 7 computer. Both are connected to the same wireless router. I have installed and uninstalled Samba and rebooted both computers several times.

View 9 Replies View Related

Ubuntu :: Accessing Files In Virtual Image?

Jan 22, 2011

I have an issue with a PC (XP pro)that had a virus which deleted all the files in the windows/system32/config folder. I first attempted to do the second repair option on the XP cd and it wasn't available. So unable to boot to windows and run an anti-virus; I put the hard drive in my external enclosure. Plugged it into my ubuntu laptop and removed the virus infected files using Clam. I then tried using the XP cd in the first repair to copy the files only to get an access denied msg.

I would like to just copy necessary data from the drive with XP pro installed and then reinstall XP and give the PC back to the owners. However the person that did the original install used a volume license cd and I unfortunately have no more CD keys and hate using cracks in certain business environments. So I came up with good idea at the time to setup XP pro in virtual box and then copy the files from there however those files are in use when the machine is running and can't be copied. So is there anyway to mount the Virtual hard drive and copy the files while the virtual machine is off?

View 2 Replies View Related

Ubuntu :: 11.04 Hangs When Accessing / Copying Files?

Jul 14, 2011

I am running an old p4 system with the latest ubuntu. It has been working wonderfully until today. It all of the sudden starts to hang when copying or even just accessing files from one specific hard drive. I have read that this is an error with ext4. Is there anyway to fix this?

It would be extremely difficult for me to transfer all of these files over if i don't know whether or not it will hang.

View 2 Replies View Related

Ubuntu Servers :: Samab With Multiple Users Accessing Different Directories?

Apr 16, 2010

I currently have samba setup and connecting. What I am trying to do is have multiple users with access to different directories. For example , let's say there are folders A B C on my Linux machine. I want one guy to see A and C and another guy to see B and C and a third guy to see them all. But I want each user to have access to change delete or execute the files within these directories that they have access to

View 4 Replies View Related

Ubuntu Servers :: Accessing Blog On Local Network And Internet?

Jun 29, 2010

i have php5 and mysql on ubuntu server which is hosting a WordPress blog. i activated it remotely over the internet and it works fine still over the internet. now im home and using my local network again and now when i try to go into it with its local IP, it just shows some text (blog title, posts and so on) with NO pictures.

View 2 Replies View Related

Ubuntu Servers :: Accessing A Folder In Remote VPS Via Windows Explorer?

May 22, 2011

I would like to read and write to a folder in an Ubuntu VPS remotely via a Windows Explorer (Windows 7 Ultimate). Considering that my VPS has very little resources (128MB RAM), what program should I use?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved