General :: Changing User For Apache / PHP?

Oct 25, 2010

I have to develop a php script, that acts as a man-in-the middle for a db-like-software and a webshop. This should run on a server within a DMZ, behind two firewalls, that should filter every request from other sources, than the eshop, and any other protocol than HTTPS. This server is a debian-machine, with a apache 2.2 and php 5.3. I've installed apache and php without any problems, installed openssl, generated a certificat and installed it. I tested the connection successfully. The eshop-server can connect to the server inside the DMZ without problems and receives a correct answer.

The db-like-software (called "netbasic") generates a csv-file in a fixed directory. this csv-fils has an owner called "netbasic". The file-access-rights are: -rwxr--r-- (I've some problems to interpret this. I know, r stands for read and w for write, x for both and the order is for different usergroups). My problem is now, that my php-script tries to read the file (successfull), generates output (successfull) and then deletes the file (failed -> permission denied). I figured out, that the problem is, that apache (or, I don't know, just php) don't runs as root and has therefore no write-permission. Because the server is already secured with the firewalls, we, my workmates and me, don't see a problem, to change the apache-user to root. but I don't know how this is done and don't know, what to search for.

View 7 Replies


ADVERTISEMENT

General :: Changing User To Root?

Sep 17, 2010

I tried to make my account root by editing etc/group:

root:x:0:oneat
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:oneat
...

But it didn't succeed.What can I do more?

View 4 Replies View Related

General :: Changing Primary Group On A User?

May 18, 2010

Does anyone know how to change the primary group on a user without changing the password? I've tried updating the /etc/passwd and running usermod -g group userBoth of those does change the group but somehow it messes up the password so the user cannot get in with the same password.

View 5 Replies View Related

General :: Changing Default User Start Directory?

Jul 4, 2009

I would like to change the start directory, the directory at which ftp/shell points to when the user logs in.

View 1 Replies View Related

General :: Running Apache As A Different User?

Jul 29, 2011

When I run the ps -efH command to list out all the process, I can see Apache running as root and seems to have sub-processes running as www-data. Here's the excerpt:

root 30117 1 0 09:10 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 30119 30117 0 09:10 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 30120 30117 0 09:10 ? 00:00:00 /usr/sbin/apache2 -k start

[code]....

View 2 Replies View Related

General :: Changing User And Running Commands Inside Of A Script?

Feb 22, 2011

My current script is as followed:

Code:

#!/bin/sh
su et
cd "media/ET"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.

[code]....

I want ET to be run as the user "et" and for some reason, I can't directly su/sudo to run the file without being in the user "et" and the "/media/ET" directory.

View 2 Replies View Related

Security :: Changing Home Directory Permission In User Management After User Created In Suse(KDE)?

Feb 2, 2011

created a user but i forgot to change the home directory permission.so after user created when i go to the user and group mangement i cant see that permission filed related to the home permission directory.my purpose is to stop accessing other user to my home directory,how it can be possible??

View 4 Replies View Related

General :: Install Proxy - Apache - Server - Trace The User Activities ?

Sep 3, 2009

OS :red hat 4.2 oracle EBS SUITE Applications:11.5.10

Iwould like to install Proxy(Apache) server on linux.is it possible?

I would like to trace the user activities by proxy server. we are running many applications on that.How to trace that.is there any server better than Apcache?

View 3 Replies View Related

Fedora Servers :: Changing Cgi-bin Folder In Apache

Jun 17, 2009

I've run into some problems trying to change the default cgi folder from /var/www/cgi-bin to /var/www/cgi-local (in order to migrate scripts from a much older server to a new one). I have edited httpd.conf to modify the following:

Code:
ScriptAlias /cgi-bin/ "/var/www/cgi-local/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-local">
[Code]...

I have also tried several variations. I left ScriptAlias at the default "/var/www/cgi-bin" and I have tried it with AllowOverride None and without the +ExecCGI after Options. I am getting a 404 error when a form has an action directed at a cgi script that is in cgi-local.

View 4 Replies View Related

Debian :: Apache 2 - Changing DocumentRoot To Public HTML

Mar 25, 2010

I'm pretty new to Debian, and I'm trying to set up Apache 2, and I want to set the DocumentRoot to public_html in my home dir, but I run into some problems.

I tried to change this (/etc/apache2/sites-available/default):
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None .....

When I restart apache I get a 403 error, and when I change it back to its original, it works fine. I want to change the DocumentRoot so I can upload files via FTP to ~/public_html.
~/public_html has the mode 777.

View 9 Replies View Related

Ubuntu :: 403 Error After Changing Apache Document Root

Sep 19, 2010

I've had apache installed for a couple of years with no problem but this morning I thought I would change the apache document root to my secondary disk so that my WAMP setup in my Windows partition and LAMP could share the same files. I've edited the etc/apache2/sites-available file to point it to the new location of my document root but I am getting a 403 - forbidden "You don't have permission to access / on this server." error when I try to load files through the browser. I'm not sure if this is a permissions issue or the way I've edited the sites-available config.

Here is the new sites available config:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /media/Data/webroot
<Directory />
Options FollowSymLinks
AllowOverride None .....

View 5 Replies View Related

Ubuntu Servers :: Changing Apache Port Gives Error

Jan 5, 2011

My ISP Blocks port 80 so I changed the port to 8081 after I do this and restart Apache and use my IP with :8081 after I get a page saying Not Found The requested URL /index.html was not found on this server. I get this same message if I use my real IP or the IP from my router. What can be causing this?

View 2 Replies View Related

Fedora Servers :: Changing Docroot Apache - Syntax Error

Apr 13, 2010

When I want to change my docroot in /home/Vincent/www or /home/Vincent/www/ it gaves me an.
:Syntax error on line 278 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

I googled it already and they sad that you have to type in:
chcon -R -h -t httpd_sys_content_t /home/Vincent/www << doesn't work so I tried also chcon -R -h -t httpd_sys_content_t /home/Vincent/www/ But nothing seems to work?

View 1 Replies View Related

Server :: Apache Changing Port For Godaddy's Simple Control Panel

Apr 11, 2011

On Godaddy's Simple Control Panel for their dedicated servers, the URL defaults to URL... I would like to change the location to URL....

View 1 Replies View Related

Debian :: Changing Default User

Mar 22, 2016

I'd like to know if there's a reliable way to change the default user in Debian: when I installed testing starting from Jessie, I used rsync to set up a duplicate stable installation and then upgraded it to testing, as a result I now have the same username for both installations, which is sometimes kinda confusing.

Reading around a bit, looks like you can indeed change your username with relative ease, but then there will be always something left behind somewhere still pointing at the old username: is that the case?

View 10 Replies View Related

Ubuntu :: 10.04 - Changing Full Name Of User

May 2, 2010

Earlier this morning I made my girlfriend an account on my Ubuntu desktop, I entered all the information, (username, full name etc.) and it worked fine. When I went to GDM I noticed that it displays both her full name, and username, but I seem to have my first name only as both my full name and user name (it just says "luke" twice).

I hadn't really paid attention to this before, but now it looked really odd with my girlfriend's full name, but only my first name. So I went to change it. Where to do that? I tried System->Preferences->About Me and System->Administration->Users and Groups, but I can't see "Full name" anywhere. In the end I used chfn on the command line to do it, but surely Ubuntu 10.04 isn't missing graphical a way to change a users full name is it?

View 2 Replies View Related

Fedora :: Restricting User From Changing Own Password In 10?

Jul 16, 2009

I hope I am in the right forum. I have a question about restricting users from being able to change their own passwords in Fedora 10. In Fedora 6, I was able to do this by using passwd with -n and -x flags. If I would set the -n value greater than the -x value, then the user would not be able to change his/her own password. If I do this in Fedora 10, this no longer works

View 4 Replies View Related

Ubuntu :: Changing Ext Hd Ownership From Root To User

Apr 17, 2010

I just got a 1.5 terrabyte Western Digital My Book 1110 external usb 2 drive. I used Gparted to reformat the drive to ext3. The problem I have is I can't change the file permissions for the drive because it says the drive is owned by root. I can't back up my files into the drive because it won't allow me to. I am using Jaunty Jackalope and got this drive to back up my files so I can feel comfortable in upgrading to Karmic Koala in case there are major problems with the upgrade.

I know someone out there in the community can tell me the commands to use in the terminal to let me gain ownership of this external drive from root so I can copy my files into it. the entire drive itself is seen as /dev/sdb One meg of the drive is unallocated and the part of the drive that I reformated is seen as /dev/sdb1 my personal files are owned by the name of dave

View 6 Replies View Related

Ubuntu :: Main User Disappeared After Changing UID And GID

Sep 20, 2010

I run both Mac OS X and Lucid. I backed up my OS X partition in preparation for a restore. I also moved over important work documents to Lucid. Restored OS X using timemachine. Updated OS X with patches and moved over some files from external hard drive. After moving the files over, timemachine backed up system. I went into Time machine to transfer work documents over but the previous back up was deleted for the new one. I had the documents on Lucid. I just needed to switch it over to OS X. Therefore, I tried to enable read/write from Lucid to Mac OS X partition.

1. sudo usermod -u osx-uid ubuntu-username # change Ubuntu UID to 501
2. sudo umount /osx # UNMOUNT OSX PARTITION FIRST!!!
3. sudo find / -uid old-ubuntu-uid -print0 | xargs -0 chown osx-uid # change file permissions

OS X was unmounted prior to entering commands and performed the steps above under a different user. During step 3 I received an error stating you do not have sufficient privileges and the process stopped. I logged out of my temporary account and tried logging back into my main account. Main account was not present on the login screen. So I followed these steps to change my UID and GID from 501 back to 1000. Login appeared. I tried to login but there was an error about ICEauthority and Nautilus. System doesn't load up and only shows wallpaper. I haven't deleted anything and I expect that I just need to point my UID back to wherever my home folder is.

View 2 Replies View Related

Ubuntu :: Changing User Login Photo?

Jan 30, 2011

I'm wanting to have a personalized photo on each user on the login screen, but am having difficulties figuring it out. I've done some searching here on the forums but haven't come up with anything yet. I'm using Pinguy OS 10.10.

View 4 Replies View Related

Debian Multimedia :: Gdm3 Hangs After Changing User Name?

Jan 15, 2011

I changed my user name with the following commands:usermod -l $newname $oldnamegroupmod -n $newname $oldname usermod -d /home/$newname -m $newnameAlso replaced every instance of /home/$oldname ith /home/$newname in ~/.config.Now gdm3 hangs with a black screen and wristwatch icon. (I can move the icon with the mouse.) This worked fine with gdm. I've looked for gdm3 files that have /home/$oldname in my home and in /etc and couldn't find anything significant.Anyone have any ideas or suggestions on how to fix this or where to look? For now, I've disabled gdm3, and I'm using startx. This is an installation in virtualbox. I just tried using ctrl-alt-F1, but it dropped me to console in the host system. (Nice rush of adrenaline came with that.)

The only errors in Xorg.0.log are there even with a successful startx. (EE) Failed to load module "xboxvideo" (module does not exist, 0)(EE) open /dev/fb0: No such file or directoryCouple more bits of relevant information - this was a live-build that I installed using refractainstaller. I also changed /etc/inittab to disable auto-login. Here are the changes, original lines commented out, new lines look like the inittab in my regular squeeze install, but I don't think this is the problem (see below.)

#1:2345:respawn:/bin/login -f user </dev/tty1 >/dev/tty1 2>&1
#2:23:respawn:/bin/login -f user </dev/tty2 >/dev/tty2 2>&1
#3:23:respawn:/bin/login -f user </dev/tty3 >/dev/tty3 2>&1

[code]....

View 4 Replies View Related

OpenSUSE Hardware :: Changing Permissions From Root To User

Jun 6, 2010

I recently got a new external drive and backed all my files up on the new external: movies, music, docs, etc. Now all my files have permission rights to the root only. I was able to change this by open up nautilis from a terminal in root and change the permission on the whole drive to my current user so I can access the files, copy & delete the files. I wanted to change some music file information in Kynamo this morning and was not able to since all the individual files still belong to the root. How can I change this permission issue without having to change each individual file?

View 8 Replies View Related

OpenSUSE Install :: Changing Password User That Is Not Logged In?

Apr 15, 2010

I'm looking for a user-friendly way to change the password of a user that is *not* currently logged into the machine. We have a machine that is used by a number of users with a low level of tech savvy. The machine gets logged in as a generic user which works for most purposes, but due to a management requirement, we need Firefox to be run under an account set up for the individual user. I've gotten that bit to work fine, but what I can't figure out is a friendly (GUI) way to allow users to change their own password while the machine is logged in as the generic user. I would like to use gnome-passwd, but I've been unable to figure out how to get it to run for a user other than the logged-in generic user.

View 7 Replies View Related

Ubuntu :: Changing Icon And Setting User Permissions?

Oct 29, 2010

I tried to place a mono icon in usr/icons/etc but I didn't have the permission to do so. I tried to change my user profile to Admin, thinking I could go back to custom, but that hasn't and it isn't allowing me to go back to my previous setting.

Within minutes of being an Admin user I noticed I couldn't even unmount something. I really need to figure out how to change my profile back to default.

After that has been dealt with, I would like some guidance on how to gain root access to put my icon where it needs to be.

View 1 Replies View Related

Ubuntu :: Bash: User Prompts And Directory Changing?

Mar 2, 2011

Basically I'm trying to create a bash script that'll ask for a folder name and then change into that folder.

Code:
Not real code but bare with me!

echo "Enter the desired folder and press [ENTER]
read $folder
cd $folder
pwd
/home/<user name>/<whatever the user entered>
Is this possible with bash or am I chasing a pipe dream?

View 1 Replies View Related

Ubuntu :: Cannot Login To One User After Changing Window Manager?

Mar 13, 2011

I was playing around with the window managers (in XFCE) by clicking each one to see what each one looks like, then screen went black and kicked me the login screen. Now I cannot login to that user, after inputting password it just kicks me back to the login screen. I can login to another user and the terminal. How can I return to the default window manager using the terminal or is there a file I can delete that will automatically return to

View 3 Replies View Related

Ubuntu :: Stop A User Changing The Network Proxy Setting?

May 31, 2011

im looking at changing the computer systems over to Ubuntu, at a scout campsite im staff at. i have sorted some filtering out with dansguardian.

but how do i limit the powers of users, so remove all the administrative side and most importantly stop a user changing the network proxy setting.

i have used ubuntu before but not for a while, so im a bit of a newbie atm.

View 8 Replies View Related

Server :: Changes Happened In /etc/shadow File, When User Changing Password?

Jan 24, 2011

I want to know, how does changes happened in the encrypted password in /etc/shadow file , when user changing password . because user doesnot have access on that file

View 1 Replies View Related

CentOS 5 :: Changing User Password Doesn't Work Correctly

Jan 20, 2011

My problem is that I cant "rewrite" older password to new. It looks like I do:

Changing password for user johny.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

all looks OK but after set up new password I can log in using OLD and NEW password. It's very unsecure for me. So in fact I cant change password and it looks like centos create next password to one accout and one account have more then one password... how can I prevent it? pls help me couse its very unsecure in my case.user looks in file shadow /etc/shadow like this:

johny:6JWuwPcQiWCCM:14994:0:99999:7:::

in etc/passwd looks like this:

johny:x:20010:20011::/home/gs-world:/sbin/nologin

how to delete all old passwords?

View 7 Replies View Related

Debian :: Remote User In Apache

May 12, 2015

I've installed Debian 6.0.7 with apache, php, mysql and phpmyadmin. We have a server with active directory and ldap where all the Windowsclients log on.

I want to view the username of the users visiting the Debianserver with $_SERVER["REMOTE_USER"] so I can give them personalized settings.

Tried installing the NTLM module from sourceforge but that didn't work, winbind also didn't work ...

View 1 Replies View Related







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