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.
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.
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??
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.
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.
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 .....
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?
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?
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?
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?
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
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
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.
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.
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.
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
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?
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.
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.
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
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: