Debian :: Grant Apache 2 Write Privileges To A Directory

Feb 15, 2011

i want /mydata to be read/write by the web server. What group and user showld i use?

View 2 Replies


ADVERTISEMENT

Debian :: Modify To Automatically Grant Root Privileges And Execute Commands When Starts?

Aug 22, 2010

I'm connected to the internet using a wireless router. Each time I boot, I have to grant root privileges and type in a shell: iwconfig wlan0 essid linksys key dhclient wlan0 Isn't there a file(or location) that I can modify to automatically grant root privileges and execute these commands when debian starts? Something like autoexec.bat in windows.

Something else I'd like to mention is when I execute iwconfig.... for the first time, I get this incomplete result:

IEEE 802.11bg  ESSID:"linksys"
Mode:Managed  Access Point: Not-Associated   Tx-Power=27 dBm
Retry  long limit:7   RTS thr:off   Fragment thr:off
Encryption key***********
Power Management:off

[Code]...

View 4 Replies View Related

Software :: Unable To Write Privileges On Wordpress Theme Directory?

May 22, 2011

I can't make write changes to .php files in my Wordpress editor, although I have already chmod -R 777 the directory. here is what ls -al says:

Code:

[root@localhost ~]# ls -al /usr/share/wordpress/wp-content/themes/purple-swirl/
total 12
drwxrwxrwx. 3 root root 4096 May 21 17:10 .
drwxrwxrwx. 4 root root 4096 May 21 17:10 ..

[code]....

View 6 Replies View Related

Ubuntu :: Way To Grant 'root' Privileges To User Account?

Jan 2, 2010

Is there a way to grant 'root' privileges to my user account? My account name ... I'll call it 'masterskop' as it is my forum name here, but not on my computer.Would it look like this in the sudoers' file?My purpose is to get access to all the folders and files in the 'File System'. The root and lost+found folders have 'Xs' on them...No access! And for example, under properties of the 'var' folder it states that 'you are not the owner, so you cannot change these permissions.' How can I get access to all of it everytime I login as the main user of my computer? I do not have anyone else using this computer.I did edit this file and used my real user name ... logged out and logged back in and still I do not have access/edit these folders and files.

View 4 Replies View Related

OpenSUSE Network :: Regular User And Http. Grant Correct Privileges?

Jul 30, 2010

I have a normal user (sites:users) and the usual http user (wwwrun:www).I'm hosting several sites and I want to be able to upload stuff via ftp, so I'm using the "sites" home (/home/sites) to keep the sites I'm hosting. Giving read permissions to all inside /home/sites makes it accessible and readable to the wwwrun user. Problems come when I need to upload something. The easy way is to give 777 permissions to the folder that's going to receive the file, but I don't feel comfortable at all with that.

What do you recommend? Is there any group configuration that could help me (like adding "sites" to the "www" group)? Or any other configuration at all that might be according the the best practices?

View 6 Replies View Related

Debian :: Screen Session Loses Write Privileges After Logging Out?

Sep 11, 2010

When I start a screen session over SSH, I can edit and save files from within the screen session before I log out of the SSH session. But after I log out and log back in, I find that the screen session has lost write privileges, so that I can no longer edit or create any files, even within my home directory. How do I prevent this from happening?

View 1 Replies View Related

Security :: How Secure To Grant "reload" Privileges To A Normal User In MySql

Oct 15, 2010

One user in my company wants to run some flush cache queries on a MySql database, it needs "reload" privileges of Administration, how secure is to give this rights to a normal user ?

View 2 Replies View Related

Ubuntu Networking :: Grant Write Permissions For Samba Shares

Aug 27, 2011

I have a Natty headless server that I would like to set up shared directories and grant specific users write permissions. I use a Windows 2008 R2 machine with Active Directory for authentication and have created a group GroupWithWriteAccess which I want to have write access to the shared directory. I want all other users to have read only access. I have edited my smb.conf file with the following

Code:
[TV]
path = /media/share/Media/TV
writeable = yes
write list = primaryuser @GroupWithWriteAccess
create mode = 0660
directory mode = 0770

The machine is fully setup to work with Windows authentication and I can access shares from the ubuntu machine, it's just sharing local directories with the correct permissions that I can't work out. So far I can access the files from my other machine, but I do not have write access even though I am logged on as a user who is a member of GroupWithWriteAccess.

View 1 Replies View Related

Server :: Grant Apache Read Access To File?

Sep 22, 2010

I am trying to set up an ampache server using apache as the webserver. The instructions have the following line as one of the requirments: Your webserver has read access to the /sql/ampache.sql file and the /config/ampache.cfg.php.dist file..I have essentially zero experience with apache, and I'm not sure how to grant read access to a file.

View 1 Replies View Related

Server :: How To Grant Apache User Umount Rights?

Apr 29, 2009

I want my apache user (www-data) to be able to umount drives that are mounted with fuse. (i think it is the same as regular umount, but i'm not sure)

when i execute: www-data@1:$ umount /2345umount: /2345 is not in the fstab (and you are not root)

how can i get this done?

View 4 Replies View Related

Fedora :: Grant Certain Group Read-only Access To / Var Directory

May 30, 2010

On RedHat 5 64-bit.I have a group that requires read-only access to the /var directory.I believe someone mentioned SGID and ACL stuff, and I've been researching this solution, but I wanted to check with you all first to ensure there wasn't an easier way to do this. Basically, I just need folks that belong in this certain group to read the contains of any file/directory contained within /var.

View 5 Replies View Related

Server :: User Privileges For Apache

Oct 16, 2010

I'm using ubuntu 10.04. Apache server is associated with www-data.I frequently run into problems editing or deleting files created by a cgi script, as they have ownership of www-data:www-data.How can I safely modify my system so that the output files are editable or deletable by user tim?

View 2 Replies View Related

Fedora :: LibUSB 1.0 - Read / Write Privileges For Users

Dec 13, 2010

I am developing a program that uses libusb-1.0 on a FC14 x64 system. I solved the compile and link issues, but I now have a problem with user privileges when I try to get device handles. The problem appears to be in the mounting of the usbfs. Is the an accepted fix to giving users read/write privileges for all usb devices?

View 4 Replies View Related

Fedora Networking :: Samba Not Working On 15 - Read / Write Privileges

Jun 19, 2011

i have a windows xp machine with filesharing enabled and the shares set up and ready to go i have a laptop on which i did a fresh install of fedora 15 with samba and all the necessary packages to make the fedora machine a samba client to the windows machine.

my problem is that when i go into nautilus and click on the network tab it shows nothing not one single computer...the fedora machine doesnt even show up.....i have done all the tests i can think of and confirmed that the smb service is running, the nmb service is running, samba is allowed thru the firewall and all the computers are in the same workgroup..yet neither one can see each other even more frustrating is when i go to mount a windows share thru the terminal it shows a successful mount (as i type in the command hit enter and recieve no errors) BUT when i go into the mount directory and open the new directory i made for the samba share it shows nothing there not even when i go into the windows machine and add a file to the shared folder...PLUS for some strange reason the /mnt directory already had two empty files called "home" and "boot" already in it i have no clue what thats about but ok, then on the windows side i go into "network places" and click on "show workgroup computers" and the windows machine will show up but not the fedora machine.

these are the commands i have used to install and get samba working- "yum install samba system-config-samba samba-client cifs-utils" "service smb start" anyway until i can figure this out i have decided to start from scratch and erase samba from the machine completely and i am hoping that maybe some one can read all this and come up with some ideas...maybe there is just something i forgot when i was setting this up yesterday its possible i just went to fast and skipped a step again all i want is the fedora 15 machine to just be a samba client with read/write priviledeges

View 2 Replies View Related

Ubuntu :: Enabling Read / Write Privileges On Office Documents?

Nov 14, 2010

I have a pc with ubuntu 10.04 installed, and a fold shared on my user directory. Which permissions that I have to edit, so every time I create or edit a document (any type: openoffice,...), that document can have read and write privileges on another computer in my home network so I can work on it?

View 6 Replies View Related

OpenSUSE Network :: Starting Apache As A User With Root Privileges?

Jul 17, 2010

I have written a simple perl program to add a command to iptables. Here is my code :

Code:
#! /usr/bin/perl
print "Content-type: text/html
";
system("iptables -A FORWARD -s 192.168.0.2 -j DROP");

I put this file in cgi-bin folder of Apache server. Here is my problem : when I run this file with shell as root user it makes change to iptables, but when I use my browser to run this file, it doesn't make any change. I'm sure this is because Apache doesn't have permission to manipulate iptables. How can I start Apache as a user with root privileges ?

View 8 Replies View Related

Software :: Create User With Password And Read / Write Privileges For Program Database

Oct 11, 2010

Unless your distro has taken care of it Centos 5.5, you'll need to create a user with a password and read/write privileges for program database. You can do this using the MySQL command line client if you are familiar with it. Well I am not familiar with it, so I wam wondering how to do it. As well when I run

mysql - p program </usr/share/program/mysql.sql>

It asks for a password. how do i find out this password.

View 1 Replies View Related

Ubuntu Installation :: Dh_auto_clean: Failed To Write To Debian/debhelper.log: No Such File Or Directory

Nov 3, 2010

fakeroot debian/rules clean dh clean dh_testdir i met error after "debuild -S", did anybody meet the same issue?

[Code]...

View 1 Replies View Related

Fedora :: Get Root Privileges In Www Directory?

Sep 21, 2010

Tell me how I can I login as root?I want to get root privileges in www directory because I have a web server and I want to put there my site and I can not do that

View 6 Replies View Related

Debian Configuration :: Apache Directory Alias Leaking Into Virtual Hosts

Sep 14, 2015

I don't know if this should be a followup to my prior topic [URL] ....

Each of the pieces I've installed all have an "Alias" directive in the conf file to link the directory where they live to be present on my server. For instance, DotClear lives in /usr/share/dotclear/web/ and there is a directive

Code: Select allAlias /dotclear /usr/share/dotclear/web
that directs http://myserver/dotclear to that site.

Now, I've set up VirtualHost entries for my DotClear and Owncloud with their own hostnames.

Code: Select all<VirtualHost *:443>
   ServerName          myowndotclear.com
   ServerAlias         www.myowndotclear.com
   DocumentRoot        /usr/share/dotclear/web

[Code] ....

Something similar for Owncloud.

The problem is when I go to [URL] ...., I get to my mythweb site.

This is not so good. So, for the sites that have their own hostnames, I removed the "Alias ..." directive. Of course, now I can't get to the hosts by going to the primary site which is probably fine, but I also still get my mythweb since that doesn't have it's own virtualhost entry.

This doesn't seem like correct behavior. Is there a better place to put the "Alias ..." directive so that it only works from one site and not all of them?

I am also thinking I should just link the directories into /var/www/html, but I'm not sure that's a better solution.

View 2 Replies View Related

Server :: Can't Write Files To A Sub-directory Of The Chroot Directory

Jul 20, 2011

I'm using OpenSSH 5.5p1 on Fedora 15. I'm trying to get a chrootDirectory to work. Specifically trying to figure out why I can't write files to a sub-directory of the chroot directory. I created a user test_user and created a group called sftp. I added test_user to the sftp group. I edited /etc/ssh/sshd_config as follows:

Code:

Subsystem sftp internal-sftp
Match group sftp
ChrootDirectory /home/sftp_users/%u
X11Forwarding no

[code]....

View 1 Replies View Related

Red Hat :: RHEL5 Apache Directory Listing For A Directory?

Feb 1, 2010

I have RHEL5 with apache installed and running. I have a directory off of / called software that I would like to have show up as a directory listing so if I go to [URL] I get the directory listing. I have tried searching around and nothing seems to work for me. So out of the box how do I get this to work? My server properly resolves to [URL] so I am good there.

View 8 Replies View Related

Security :: Secure FTP - Root Privileges After Logging In Form A Macintosh And Could Browse The Root Directory

Apr 12, 2010

I run ProFTPd with TLS authentication on my Debian Lenny server. My problem is that despite of the fact that my users connect chrooted, one of my friends had root privileges after logging in form a Macintosh and could browse the root directory, too.

View 1 Replies View Related

CentOS 5 :: Allowing Apache To Write To Folder?

Jul 29, 2009

I'm a PHP developer and an app I'm working on right now generates files for users to download. The problem I'm seeing is in order to write to a folder I have to chmod it 777, obviously a bad idea.

I'm thinking the best idea is to change the folder user / group to that of apache, however after over an hour of Googleing I can not find out what user / group apache belongs to.

Thoughts? Is this the best way to go or should I do something else?

View 3 Replies View Related

Debian :: Can't Get Sudo / Admin Privileges

Jan 11, 2016

receive bash notice: "jim is not in the sudoers file."Just finished my first Debian install several hours ago, my first go around w/Debian. Installed 8.2 DVD ISO on USB. Had this issue from my first use in BASH, not a forgotten password problem. So 2 questions:

1) I'll be installing Debian again, and want to avoid this in future. There were 2 inputs on setup for name (my full name) and user (installer offered my first name which I accepted). 2 inputs for Password as well: I used the same password both times (have done this w/Mint & Ubuntu w/out issue).

2) How to fix this? Tried this: URL...however, neither keystroke got me to "rescue" prompt as article suggests. Several other articles presume an admin with privileges has sudo access to modify sudoers file.

I have multi-boot setup in BING environment (MBR, not EFI). I am booting from a GRUB2 ISO using grub commands as I still need GRUB installed in my boot partition until I can get cmd line access. I'm able to get a session on boot with the same password I used in setup.

View 14 Replies View Related

Debian :: How To Sign In Or Install For Root Privileges

Feb 28, 2015

I used Zorin, Ubuntu, and Kubuntu. Even though Kubuntu was my favorite because of the KDE platform, it still didn't have what I was looking for. With Debian, the KDE platform works great, it uses KDM instead of LightDM, (you can do more with that), and the choices of software for setting it up as a server is great. The problem I having right now is with the root privileges. With the other Debian based systems I used, root privileges was not a problem. When I signed in, it was with my user name and my root password.

Every time I did updates or installed software, it ask me for authentication which is my root password. And if I had to use su or sudo commands in the terminal it ask for my password. I had no problem with that. I'm just as big with security as any Unix based system users. And Linux has that. That's one of the big reasons I left Microsoft Windows for Linux. There was times when I had to have full root privileges for just a short time, and my favorite command was sudo nautilus. This was perfect.

For example, sometimes I had to get in to the opt folder for a brief moment to past a web page in it. Opt is a root folder. It can be opened with out a root privilege, but you just can't past files to it. Sudo nautilus was perfect for this because it is a temporary root privilege. Close the terminal and the root privilege session ends. This is great. You don't want root privileges all the time you're log in. That can be dangerous because it's a high security risk.

With Debian, I have not been able to get any root privileges. And without root privileges, I can't load much needed software, can't access my second hard drive, matter of fact, the second hard drive doesn't even show up. I can't really do much of anything. Is there something I can do when I am installing Debian to fix this or how do I get the root privileges I need?

View 3 Replies View Related

Fedora Servers :: Cannot Start Apache - No Read / Write Access To HTTP Files

Jan 14, 2009

I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:

Code:
Summary:
SELinux prevented httpd reading and writing access to http files.

Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.

Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"

Fix Command:
setsebool -P httpd_unified=1

I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>

<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>

Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.

View 10 Replies View Related

General :: Best Way To Allow A User To Write To The /var/www Directory?

Mar 3, 2010

On my laptop for testing, I simply chown each subdir of /var/www to my myuser:www-data. But, now that I am setting up a public facing server, I'm wondering if this is the proper way to do so? If not, what is the best way to allow a non-root account to write to /var/www.

View 4 Replies View Related

Ubuntu :: Get Write Permission To A Directory?

Feb 21, 2010

I tried to read the File Permissions page on the wiki and my eyes glazed over after about three sentences. I've got a folder called /var/www/pics that I just want to be able to save image files to. My only other choice as I understand it is to save them to my home folder, then use a "sudo mv" command to copy files to that directory. How do I give my account permissions to save a file in that directory?

View 2 Replies View Related

Ubuntu :: Write A Script To Cd Into A Directory

Apr 27, 2010

I have come across this question many times and recently had this discussion again: "I wrote a script to cd into a directory for me. How come it doesn't work when I run it?" I have seen some information out there on google but there doesn't seem to be one centralized answer, so I will try to offer one here. For those of us that have taken an operating systems course, you should understand why already (or I am assuming you know, as processes are such a fundamental part of an operating system). For everyone else, here is my simple/unofficial explanation, how to accomplish what you are after. This assumes you are running a bash shell (run the command "echo $SHELL" if you aren't sure). I can't be certain that all of the solutions below will work in all shells.

The shell, terminal, console, whatever you want to call it is a running process in the operating system. It has what is known as an "environment". You can see all of the variables in this environment by running the "set" command without any arguments. When you invoke a script, you are actually spawning a child process, that has a totally different environment. Any modifications made to the environment for the child process cannot be made to the parent environment. For example:

[Code]...

View 2 Replies View Related







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