Ubuntu :: Reset Apache 2 Permissions To Default Permissions?

Mar 16, 2010

Is it possible to reset apache 2 permissions to default permissions I'm using Ubuntu 9.10 command line server, would webmin give me this access ?

View 1 Replies


ADVERTISEMENT

Ubuntu Servers :: Default File Permissions Apache /var/www/?

Jan 14, 2010

This is probably a pretty basic question seeing as I'm pretty new to Ubuntu Server. I'm running a simple website from my Ubuntu Server machine with The files are all stored in /var/www/ and then subdirectories. The problem is that when I add files through FTP I need to go and change all of the file permissions since by default they do not have read access so can't be accessed through a web browser on another machine.How can I make the default permissions readable for the directory and all new files that will be moved in it

View 5 Replies View Related

Ubuntu :: Permissions - Reset To Defaults ?

Jan 31, 2011

After a regrettable typo, I reset all the permissions in my filesystem. What is the easiest way to restore my permissions to how they were? Is there a list where i can find the recommended permission settings for each directory?

View 7 Replies View Related

Security :: /var/log/Xorg Permissions Reset During Re-Boot?

Jan 28, 2010

I was curious if anyone has addressed this issue before. I have set the permissions to /var/log/Xorg.0.log as follows:

Code:
-rw-r----- 1 root root 00000 Jan 00 00:00 /var/log/Xorg.0.log
I have done a lsof and the file is being opened by root. I have set Roots umask to 0077, yet after a reboot

[code]....

View 1 Replies View Related

CentOS 5 :: Permissions Get Reset To Original State

Nov 4, 2009

I have a Centos 5.3 desktop that I have a development board connected via a serial connection to. The permissions on /dev/ttyS0 are currently set
crw--w---- 1 root root 4, 64 Nov 4 13:56 ttyS0

I have changed them so that they read
crw-rw---- 1 root uucp 4, 64 Nov 4 13:56 ttyS0

But every time I initialize the dev board the permissions switch back to the original state. I have found lots about preventing the permissions switching back upon reboot but that doesn't appear to be the problem.

View 5 Replies View Related

Ubuntu Multimedia :: IVTV And (pvr-350) - Permissions Get Reset Everytime When Reboot

Oct 22, 2010

I have hauppauge pvr-350 which has an mpeg2 decoder with an RGB and s-video out to let me send video to my tv. I'm using the ivtv drivers which work well. To test the card I ran

Code:
cat test.mpeg > /dev/video16
-bash: /dev/video16: Permission denied
So then I did
Code:
ls -l /dev/video16
crw-rw---- 1 root video 81, 5 2010-10-22 12:21 /dev/video16
sudo chmod a+rw /dev/video16
[sudo] password for patrick:
cat test.mpeg > /dev/video16

However the permissions get reset everytime I reboot. Is there any way to pass an argument to the ivtv driver to change the default permissions?

View 1 Replies View Related

General :: Accidently Reset SELINUX Context For /var Folder Permissions?

Jan 30, 2011

I accidently reset the SELINUX context on the /var folder from "var_t" to user data. Now I cant go back and set it to "var_t" and i cant access my website anymore

View 3 Replies View Related

Ubuntu :: Change Permissions For File / Add These Lines Without Changing Permissions?

Oct 16, 2010

Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?

View 2 Replies View Related

Ubuntu :: Permissions For Rsync And BackinTime - Setup 2nd HD With Correct Permissions?

May 31, 2011

Problem: permissions for rsync and BackinTime. Setup: Ubuntu 11.04, Two internal HD, #1=main, single boot, #2=backup drive. Question: How do I set up my 2nd HD with correct permissions? Background: I had previously a dual boot XP+10.04 with a 2nd HD formatted as NTFS. With this I was able to use my rsync and backintime to my 2nd HD with no issue. My new set up is EXT4 on both HD.

(I even tried to reformat my 2nd HD as NTFS, but that didnt fix the issue) I followed [URL] to mount the 2nd HD and get permissions. But now when I run backintime i get this error: [E] Error: rsync: opendir "/home/myhome/.ssh" failed: Permission denied (13) I did my requisite reading for a newbie, and am stuck. I ran backintime as root, and it backed up ok. How do I run my user version of backintime? (i.e. How do I fix the permission issue?)

View 9 Replies View Related

General :: RW Permissions On External HDD - Chmod: Changing Permissions Of `whatever': Read-only Filesystem

Mar 15, 2010

I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:

chmod: changing permissions of `whatever': read-only filesystem.

This is my mount table:

[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)

[code]....

View 6 Replies View Related

Ubuntu Servers :: How To Set Apache File Permissions

Jun 30, 2011

What is recommended way to set permissions of folders VAR/WWW for use with apache in 11.04? I would like to let the user "ABC" have access to read/write the website files in this directory. How should permissions on these files be set?

View 2 Replies View Related

Ubuntu Security :: File Permissions With Apache

Jul 6, 2011

I know how to assign file permissions and other tasks like user to group, but I'm stuck with a situation in how I should set up my system.So I have a LAMP server set up. I'm not the only developer so I created a group called "developers" for my other users "Mike," "Alex," and "Cindy," which are developers (I'm Mike by the way). I know that "www-data" is the user and group Apache uses.This is good because only I have permission to update the production site, but for the dev site, it's a different story.

View 3 Replies View Related

Ubuntu :: Changing Default Permissions Of /dev/sdb

Jan 4, 2010

im looking to allow virtualbox raw disk access to /dev/sdb

currently if i

ls -l /dev/sdb
brw-rw---- 1 root disk 8,2010-01-04 17:00 /dev/sdb

now if i chmod this to 777 or use chown to change the owner this temporarily works but after a few moments it defaults back to its original permissions.

is there a way i can define the permission? i was thinking fstab but i can't have a mount point?

View 5 Replies View Related

Ubuntu :: Apache & Group Permissions - 403 Forbidden Error

Nov 12, 2010

this costed me a whole day of trying and retrying. I set up a small home server with apache, php, and mysql.

System infos:
Linux 2.6.31-22-generic-pae
Ubuntu 9.10 Karmic Server edition
Apache/2.2.12 (Ubuntu)

Until now, it served happily a couple of sites, with no problems. But now, I wanted to set up my ftp server to point to the same directory as one of the sites, for me to be able to upload and manage files via ftp. As a server I normally use proftpd. With my usual config, proftpd runs with its own user and simulates the user ftpuser:ftpgroup when creating files. So I just changed all the files to be owned by this user and group. Permissions set to 770.

Everything works fine, and I'm able to access the data via ftp. BUT, when I try to browse my site the usual way (i.e. point firefox to its address) a 403 forbidden error is issued. Of course, you will say: you didn't allow access to apache. Well, I remembered that right away, and added the user www-data to the ftpgroup user. Now I espect apache to be able to read and serve the files.

Still same problem. 403. The apache error log is full with "permission denied" errors. After many attempts, I logged in as the user www-data, and tested access to the files. This way I'm able to cd into the directory, and read-write the files with nano. As a test, I tryed the other way around. Setting www-data:www-data as the owner of the files, and adding the ftpuser to the www-data group. This way apache works, but proftpd does not. Most probably it has something to do with a misunderstanding of groups permissions or the way this two deamons access the files.

View 9 Replies View Related

General :: Manually Update Permissions Apache?

Jan 23, 2010

I have a directory in the /var/www folder. I have access to this directory from my windows machine through samba.

Everytime i add new files to the folder where the webpage is locate i need to go to my centos server a type chmod -R 777 /var/www/name

It can't be right that i need to do this everytime i add new files to the folder??

If i dont run this command i can't access this files when I access the webpage throug a browser...

UPDATE: I think It has something to do with the samba user, because if i create the files as root directly on the centos server i dont got the problem ... ?

View 5 Replies View Related

Server :: Setup Permissions For SSH Access To Apache?

Feb 23, 2010

I am looking for the best way to set up permissions in the following situation. I have a web server set up on debian. I have different web sites in /var/www. Each web has a group of developers who each have system users and ssh access to the server. For example i have a web site in /var/www/example.com and a group of developers in group exampledev. I need all the users in exampledev plus the apache user (www-data) to have read write and execute permissions on all the content of the web site. I can give the group exampledev these permissions without a problem. The problem is that when they modify or create new files (they either connect via ssh o sftp which is the same right?) they are created with their user and group rather than exampledev. Am i going down the wrong path? This must be a common situation but i haven't found the solution.

View 5 Replies View Related

Ubuntu :: Setting Default File Permissions

Jun 26, 2011

I have a file server running a cronjob to reset file permissions on a regular basis. I was thinking, I wonder if there is a way to do the chmod and chown command in a single command, as I always have to do both on the same folder, the way that you can do "chown root:users Uploads" instead of having to do two separate commands for chown and chgrp.

Then I got to thinking, are these commands even necessary? Every file copied or moved into these folders by any user needs to be something like "chmod 750" and "chgrp root:users", so rather than running a cronjob to do these modifications at regular intervals, there ought to be a way to set the folder permissions so that any files contained within will have these permissions.

The problem arises because users create documents, then a supervisor with elevated privileges can move those documents into a shared folder, however the permissions are wrong, they are user1:user1 for the owner and group and the other users can't read the file until a cronjob changes the group to be users. This has actually been acceptable, but certainly there is a better way to do this.

View 7 Replies View Related

Ubuntu :: Change Default File Permissions?

Jul 3, 2011

my dad has been using Ubuntu for a few weeks now and likes it, however he's having some issues regarding read-only files. He's a doctor and frequently has to download word files to edit, however they always download as a read-only file. While this isn't particularly difficult to do, he finds doing it tiresome and because he isn't the most proficient PC user, may have difficulty with it when I return to school after the summer. I was hoping that there's some way to change the default settings so that all files downloaded are writeable.

Additionally, he has a number CD-RWs which he both retrieves files from and stores them to, however when trying to access these CDs he is told that they are read-only. Right clicking on the CD and trying to change the access permissions doesn't work (says that permissions can't be changed because the disc is read-only).

View 7 Replies View Related

General :: Lack Basic Understanding Of Permissions (Apache)

Apr 8, 2010

I am very new to linux. The first time i ran a linux machine was one Saturday. Anyway I am trying to set up an apache web server, all I want to do is play around with html and post it on my unbuntu server so it is available to the internet. I am also trying to install samba but I am having trouble with that so for now I am using winscp. Ok, so I made a folder in my home directory for webstuff, and set up apache to look in that folder.

mkdir /home/username/webstuff
I put my index.html file into the /webstuff folder.
But when I go to my website, it says 403 error unable to access "/"

Did I make the folder in the right place? I do not want people being able to access my / folder so maby I made the web stuff folder in the wrong place? Also I thought I would just put my inded.html file inside of the default one apache gives you, but when I tried to transfer index.html it said permission denied. How to set up permissions so I can use apache and transfer my html files from my remote desktop to my server would be great!

View 7 Replies View Related

Ubuntu Servers :: Apache - Change The Permissions For A Directory And All Files Inside

Dec 12, 2010

I would like to change the permissions for a directory and all files inside the directory how do I do this? The website is located only on my local network so I am not worried about security. Also what would be the optimal permissions for running wordpress.

View 1 Replies View Related

Ubuntu Security :: How Secure Are The Default File Permissions

Feb 5, 2010

What do the default file permissions in ubuntu 9.10 protect/deny access to?

View 9 Replies View Related

Ubuntu :: Permissions - Writing Files In Different Default Permission?

May 10, 2010

Currently when I create a folder, it comes down as 755 permissions.

I want it to come down as 775 permissions by default.

How can I change this?

View 2 Replies View Related

Ubuntu :: Reverting To Default Permissions For Root Filesystem?

Jul 20, 2010

Is there a way to revert to default permissions using chmod, for root filesystem? As root I accidentally chmod'd / to 755, luckily this is a dev server and not production so its not critical to fix for me, just wondering though....

View 2 Replies View Related

Ubuntu :: Change Default Permissions On USB Mounted Devices

Mar 8, 2011

I have a few websites that travel along with me in my usb stick, and I want to have read and write permisions to files on my usb by other users (i.e.: www-data) actually they have 0700. I'm running maverick (linux mint Julia).

View 1 Replies View Related

Ubuntu :: SAMBA Default File Create Permissions?

Mar 28, 2011

Files saved on our ubuntu server via samba server are all being created/saved as read only (-rwxr--r--). The users are MAC Users who are connecting via finder.I have taken 2 steps:First I added the lines "umask 0000" to the .bashrc files in the users' home directories.Second, I have modified the /etc/samba/smb.conf file such that I set "create mask = 0000" and also "directory mask = 0000" but the files are still being created as "-rwxr--r--".

View 1 Replies View Related

General :: File / Folder Permissions And Groups On Linux With Apache?

Jun 26, 2010

I'm trying to learn about permissions on linux webserver with apache.Some clues to the system: The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.

To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world,so a 701 basically works, but won't let some users in.So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours
below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?I was aiming at having 4 groups:

1. webapp: same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.

2. dev_int: can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root

3. dev_ext: can read write and execute in all client folders, but cannot access anything outside of the webapp root

4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders

View 1 Replies View Related

Ubuntu Servers :: Default File Permissions For System Folders

May 5, 2010

I had a major raid event recently which caused my Ubuntu 9.04 server to recover part of its file journal on the system partition. This caused some of the file permissions to go all funny and I now need to change them manually.

What the file permissions should for the following folders:
/etc/
/home/
/lost+found/
/mnt/
/root/
/sbin/
/srv/
/tmp/

The server is running and I fixed the some of the ownership issues already. I use a basic LAMP setup with samba, and proftp.

View 2 Replies View Related

Ubuntu :: Set Default File Permissions For Newly Created Directories?

Nov 18, 2010

I'm just wondering: I know that umask sets the default file permissions for files, however I want to know if there is anyway to set default file permissions for newly created directories.

For example, I want my user to create new directories that anyone can access and modify (777) but I want the new files the user creates to be 755 (read by everyone, written only by user).

Is this possible?

View 1 Replies View Related

Fedora Servers :: F11 & Apache Permissions - Reading Files Out Of The Html Directory

Jun 12, 2009

With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?

View 1 Replies View Related

Fedora Security :: Default File Permissions In /boot?

May 14, 2010

Does anyone know why files in /boot are world-readable (particularly the initial ram disk)? I'm not an expert, but I would not expect anyone except root or a sudoer to have the ability to read these files.

View 5 Replies View Related







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