The tag has no wiki summary.

learn more… | top users | synonyms

26
votes
2answers
773 views

Why is it bad to have root writing files to a directory not owned by root?

This came up in a comment to another question and I'd love it if someone could explain the reasons for this to me. I suggested having Apache log the errors for a given VHost to a user's home ...
11
votes
6answers
31k views

How to change owner of mount point

We have moved mysql data directory to another disk, so now /var/lib/mysql is just a mount point to another partition. We set the owner of the /var/lib/mysql directory to mysql.mysql. But everytime we ...
7
votes
4answers
8k views

NTFS Folder has no owner, no permissions, can't be deleted

I have a folder a 2003 member server which can't be deleted. Nothing has any permissions (domain admin and running up a cmd prompt as "nt authority\system" using psexec) - always "access denied". ...
6
votes
5answers
8k views

Security: Unable to display current owner

I have a user with local administrative rights on their Windows 7 64-bit box. They extracted a file from a zip file they downloaded with the Zip shell extension to their desktop on a non-encrypted or ...
6
votes
2answers
32k views

Changing database owner in SQL Server 2008; CLR issues depending on method used?

I attached a database and tried changing the owner to a valid login. I used the statement: ALTER AUTHORIZATION ON database::my_db_name TO "sa". The database properties showed that the new owner was ...
4
votes
6answers
3k views

Bash Script To Repair Directory and File Ownership

My client had me deploy some folders out to a bunch of home directories for his customer websites. I did this with a Bash script, but it ended up using the root account permissions. How do I make a ...
4
votes
3answers
110 views

Why give owner anything other than 7 for file permissions?

In Unix-like OS's, what's the point of giving the owner of a file anything less than 7 (rwx) for file permissions? The owner can trivially change the owner permissions for his/her files, and so can a ...
3
votes
5answers
400 views

Backup unix files to filesystem which doesn't allow chgrp/chown etc

I unfortunately have no choice but to backup some files from a ext3 parition on a server to a filesystem which does not allow me to set and edit the normal file attributes (NFS, with all_squash set so ...
3
votes
4answers
3k views

Restore default ownership in CentOS after terrible chown [duplicate]

Possible Duplicate: How do I recover a RHEL 4.3 server from bad permissions set over the entire filesystem? Is there any way to restore the default ownership of a CentOS filesystem after an ...
3
votes
1answer
291 views

How to show numerical UIDs/GIDs stored in tar file

I've got some troubles with a tar file that holds a backup. It was provided by our hosting provider and contains some strange file permissions. When viewing with tar tvf example.tar I only get the ...
3
votes
2answers
4k views

How to prevent ssh git push to set file ownership?

I have a remote bare Git repository on an Ubuntu server, where the files are owned by the user my_project and the group my_project, with permissions set accordingly. All commiters are themself in the ...
3
votes
2answers
268 views

Determine creator of mail item in Exchange 2003 public folder

We have several users using a shared account and when messages in that account's in box have been processed they are drag and dropped into a public folder. Is there a way to determine who dropped a ...
3
votes
4answers
9k views

ftp upload / how to change permissions / ownership “automagically”?

I've got a vsftp server running. Here's what I want to do : 2 developpers are given the access through an ftp client to a web directory. They write the files they want. Then they refresh the pages ...
3
votes
2answers
386 views

google apps - privacy, ownership and location of data

This is not directly technical question. but I think this is an important question for every admin implementing Google Apps instead of their own mail server. I'm pretty excited by the possibilities ...
2
votes
3answers
998 views

Change the permissions and take ownership of shared files

I have domain controller (windows server 2008) with shared folders. I am logged in as administrator. I try to take ownership of a shared folder using the command takeown /f <File name> /a /r. ...
2
votes
2answers
7k views

Change owner recursively with Powershell?

I'm trying to use Powershell to change owner of a folder, recursively. I'm basically using this code: $acct1 = New-Object System.Security.Principal.NTAccount('DOMAIN\Enterprise Admins') ...
2
votes
3answers
5k views

Windows Server 2008 Administrator can't take Ownership of file

I'm trying to edit the hosts file on Windows Server 2008. I right clicked on Notepad and Ran as Administrator, then opened the hosts file, but when I try to save it I get the following error message: ...
2
votes
2answers
309 views

What is the standard ownership/permissions setup for Apache userdirs?

When enabling userdirs (i.e. ~/public_html) in apache, what is the standard way to set up ownership and permissions of my public_html directory? Ideally I would like to give the apache server ...
2
votes
3answers
291 views

Access Denied to Administrator on Domain Controler 2003

On one of my Domain Controlers, I have a folder that was created by a service. When I try to access it using Administrator credentials I get access denied. Administrator has ownership of the parent ...
2
votes
1answer
215 views

How to grant somebody “Take ownership” privilege?

I have a Windows 2008 R2 machine. My machine itself is not a domain controller but is joined to a domain. In Local Security Policy, under Security Settings > Local Policies > User Rights ...
2
votes
2answers
67 views

similar files has the same permission & owner but some of them give forbidden error

I moved a file from another server to my server. in directory listing Apache doesn't show it and I cant download it from browser (forbidden) but I created a new file and chmod + chown both of them to ...
2
votes
1answer
103 views

suPHP and Apache DBD : change GID only

(Note: if you're familiar with suPHP setups and want to skip the question's details, you'll find a quick explanation of what I'm trying to achieve at the end) I am currently setting up a machine to ...
1
vote
5answers
134 views

Granting access to user's file store without their knowledge or consent [closed]

As a system administrator, if you were asked to facilitate access to your users' file store so that a director could look at what types of files are being stored, what would your response be? The ...
1
vote
1answer
774 views

What user should own /var/www/html in Centos?

I've installed CentOS 5.5 with apache, php and mysql. Right now the /var/www/html directory is owned by the root while apache is being run by apache user from apache group. Is that recommended? ...
1
vote
5answers
2k views

How do I reset ownership of /usr/bin/sudo on Linux?

I accidentally changed ownership of /usr/bin/sudo to my current user (i also did this for some other stuff in my /usr directory). I can't change any of them back because I need ownership of ...
1
vote
2answers
61 views

Using chown: Any substantial difference between assigning ownership of the entire directory vs just the files in it? [closed]

An example: Say Apache needs to have ownership of all the files in /var/www/html to serve the pages of a website. Is there any danger in making Apache the owner of this directory (and files and ...
1
vote
1answer
4k views

rsync encounters chgrp errors despite --no-g

I am using rsync to sync a directory to a USB-mounted device. That device automounts with myuser:root ownership. When I rsync my directory (that has myuser:myuser ownership) with -a, I get many of the ...
1
vote
1answer
2k views

Changing the ownership of files/dirs created/uploaded via ftp automatically and immediately after they are created

I want the user and group ownership of the files/dirs uploaded/created via ftp to be set to some user and group of my choice automatically. So far I think this is not possible (I'm using vsftp on ...
1
vote
2answers
8k views

Force ownership of folder structure without replacing other permissions - Windows Server 2008 R2 - takeown is erasing all other permissions

Logged on as local Administrator. Trying to put Administrator as owner of all files and folders on a drive. The drive contains an existing folder structure with securities/permissions/acls copied from ...
1
vote
2answers
588 views

File ownership and permissions on web site PHP files

I am learning the basics of linux servers so I am green. I have an Ubuntu server upon which there are websites that I have inherited. In a fit of security worry I decided to check out the ownership ...
1
vote
1answer
925 views

Is it possible to Takeown.exe of a folder for the “Everyone” user, on Windows

I can use takeown.exe to give the currently logged in user ownership of a folder. But when I try: takeown /s jimswork8 /u Everyone /f c:\test /R /D Y It just gives ownership to the currently logged ...
1
vote
2answers
1k views

Taking ownership of folder does not give full access

Summary: Even after taking ownership of a newly created directory called "NewWebsite" inside the existing "c:\inetpub\" on a Windows Server 2008 R2 (SP1) I do not have full access. The most obvious ...
1
vote
1answer
46 views

Multiple directories update with changing user permissons

I have multiple users on one machine with FreeBSD7.3. Each user has his own site (only one). Each site is a copy of master-site with slight differences (ie. database configuration, template files). ...
1
vote
1answer
65 views

www-data and server user

I have a WordPress installation on my first VPS, and ownership problem with www-data user and user I created (let's call it user1) to use for login (I disabled root login). I use user1 for FTP, but I ...
1
vote
2answers
8k views

How to check the creator of a file in Windows?

I want to find out who created a certain file but all I can see under Security tab is Administrators group being pointed out as owner. This is not very helpful. How can I see who really created the ...
1
vote
1answer
68 views

Avoiding SQL Server 2005 tables with same names, but with different owners

What is the most likely cause of this behavor with SQL Server 2005? TEST #1: I run Management Studio Express, connect to my local database with "windows authentication" and see that I have 1 ...
1
vote
2answers
80 views

how to have files created by CMS have the same ownership as SSH user

I am having difficulty on our ubuntu server whereby I have an SSH user that when I create files using this user the ownership is web_user:www-data The problem is when a file is uploaded or created ...
1
vote
1answer
414 views

Fixing file permissions and user ownership on Unix server

I have just correct my file permissions using: http://serverfault.com/questions/35076/need-to-fix-file-permissions-in-a-users-home-directory Looking for the same commands and explanation to correct ...
1
vote
1answer
467 views

Problem with file owner/group

I have files on my website which I need access to files on my server and they also need to be able to be edited by the webserver. Now with my current setup I cant seem to do that. If the owner/group ...
1
vote
3answers
243 views

Domain names ownership

Suppose I want to buy a domain name called AAAA2.com where AAAA is a special name, like a movie name for example. Are there any legal issues or intellectual rules that can make me lose the ownership ...
1
vote
1answer
61 views

How to retain original file ownership information While recovering files from windows server sbs2011 backup

Background: Windows SBS2011/2008 R2 Microsoft Word Documents Windows built in backup and restore Plot: Some user/s moved some sensitive files to a public network drive and I was told to move ...
1
vote
1answer
69 views

I'd like all files created in a specific directory to be owned by a certain user in linux, is that possible?

First I've been asked to change the owner of the current files in the folder and i chown'ed -R the path but i want to be sure that files which will be created there in the future will also be owned by ...
1
vote
1answer
112 views

Folders ownerships on Windows and IIS7

I've an issue on Godaddy.com Windows (IIS 7) hosting. I've installed Drupal, and it cannot save some files into specific folders. I've checked from the control panel, the folder preferences, and ...
1
vote
1answer
260 views

unable to check htaccess file, ensure it is readable

today i logged in to find i can't even cd into /var/ directory. I've checked that ownership and it's correct. /var/www/ is inaccessible from the web browser. it says 403 forbidden. error log shows ...
0
votes
2answers
240 views

How do I make it so that files created in a directory have a certain group ownership?

In a modern Linux distro, I want the files created under /path/to/files to have a default group of mygroup. It seems on some distributions this can be done by grpid, which doesn't exists on Ubuntu. ...
0
votes
1answer
43 views

What type of caching is involved in the displayed usernames of file owners/security on member servers

One of our domains has two Windows 2008 r2 servers: a domain controller which also holds all the FSMO roles and member server. If I rename a domain user, then use Windows explorer to look at a file ...
0
votes
2answers
212 views

Using rsync to copy files from one server to another, pertaining users and permissions

I'm backing up user uploaded files from my primary server to my failover server using rsync. If I use rsync -a to mirror an /uploads directory from server A to server B, can I expect programs using ...
0
votes
3answers
158 views

Bulk change of ownership

I recently migrated a server to another machine in our rack. They ownership/permissions didn't transfer when I moved /home from machine1 to /home on machine2 (both Ubuntu machines) The user accounts ...
0
votes
1answer
649 views

Change only a specific owner when extracting tar archive

I have a tar archive containing two owners, 1000 and 0 : $ tar tfvz archive.tgz drwxr-xr-x 1000/1000 main/ drwxr-xr-x 0/0 main/root_dir/ drwxr-xr-x 0/0 ...
0
votes
2answers
529 views

How to change the ownership of a process in Debian?

I have a process of mine running as root (say a webserver) and I want it to be run as non-root. Is there a way to change the ownership of a process from root to an unprivileged user? I am working on ...