permissions

File permissions for web hosting in shared environment?

Hi I want to host my files in my university storage space. Each of us is given a space under /home/userid/html/ The current numberic value for the permissions is 755. The problem is that other users can go to my /home/userid/html page and look at my source code. I tried disabling the read option for group and public, but then I get acce...

Changing unix group for files

I have a file that a colleague and I are editing together, on a unix system. We are using unix group permissions to edit it. We have one unix group that we are both members of. Whenever I save the file, it changes the unix group to one that he is not a member of. Is there any way to stop it from doing that? ...

Bizarre SQL Server Permissions Question

We have a system that uses a SQL server 2005 database with a number of views these are automatically run daily and the result sets emailed to the client. I dont really know much about the system as a colleague of mine looks after it all but apparently its been working fine. We recently changed the admin password on the server SQL is in...

PHP can't read files containing PHP code as text files

I've stumbled upon the following pecularity: $handle = fopen(realpath("../folder/files.php"), "r"); can't read a file, but as soon as I remove php tags from the file, it becomes readable and my scripts prints non-empty file content on the page. Also, file.php is never ever executed, so I wonder why it is the problem. I guess somehow A...

Write to Directory using PHP: Is this a permissions problem?

Hi My PHP script writes to a file so that it can create a jpg image. fwrite($handle, $GLOBALS['HTTP_RAW_POST_DATA']); fclose($handle); print $newfile.'.jpg'; I have put this script on a new server however the image never gets saved. The permission of the folder it saves to is 755 but it does not own it. Last time, I think I fixed...

svn:externals and permissions

I am running an svn project with optional components - pulling from several external repositories, and a number of users with varying access permissions to these externals. The 'svn update' command aborts at the first project that it cannot retrieve. Is there a better or standard methodology for svn:externals to allow successful checko...

Specific rights to GRANT, REVOKE or DENY on stored procedures

Hi all, On a SQL Server 2008 database I want to give a user the rights to GRANT, REVOKE and DENY on objects only of type stored procedure (not using the db_securityadmin database role). How can i do this? Thanks! Sandor ...

Simulating Shared Hosting Trust Levels

I want to simulate the trust levels of a shared hosting environment on my development machine so that there are no nasty surprises when I come to deploy my solution. I added this my setting the web.config: <trust level="Medium" originUrl="*"/> The only problem with this is that I'm getting this exception when I try to save to my dat...

What is the normal CHMod

On my web server, my file permissions are all over the place and I want to 'reset' everything back to how it originally was. I don't want any users to be able to come in and delete things off my web server! I just want them to be able to look at php pages etc. What CHMod should I use? ...

SSRS custom code gives "#error" when report is run

Hi, For one of the reports with SSRS we have some custom code attached to one of the group footers. The report works fine in preview mode but gives an "#error" at every custom code location when the report is run. The 'Problem related post' I referred points that this is because : "Reporting Services is using the Code Access Security fe...

Apache/nginx fine grained (per file) permissions?

Is it possible to set fine-grained permissions using either Apache or nginx? Given a large number of files and a large number of users, what's a good way to specify that each authenticated user only has access his/her own files? user_a can access file_a_1, file_a_2 user_b can access file_b_1 user_c can access file_c_1, file_c2, file_c3,...

Sticky situation where accessing parent functions is necessary in Java

I've been working on an economy simulator in Java and ran into a roadblock. I have an Economy class that owns a vector of Traders. Every iteration, the Economy class calls each Trader to update() and decide what trades it would like to place. The update() function returns the desired transactions to be added to the queue in the parent Ec...

C# Access Database In use or Permission Failure

Hello, I'm using Access 2007 and C# to learn Databases. So far it's been rough but I've been able to handle things relatively well. What I need to do though is to query a my database table Accounts for the Amount of money a user has based on their pin. I've placed a button on the Windows Form I am using that will query the database on c...

Force open a file

One C++ program is filling a logfile, it keeps a handle to the logfile. I want to open this logfile with a C# program and parse it to see if a certain line has been added to the logfile. However, if I open the logfile with C# I get a "this file is being used by another process" IOException. Code used: using(StreamReader reader = File....

How can I have a PHP script run a shell script as root?

Running Fedora 9/10, Apache 2, PHP 5... Can I run a shell script as root, from a PHP script using exec()? Do I just give Apache root priveleges, and then add "sudo" in front of them command? Specifically, I'm trying to start and stop a background script. Currently I have a shell script that just runs the app, start.sh: #!/bin/bash ...

Errors during WHM backup - problem with permissions

Getting this error in our log report for WHM backups. Copying homedir..../bin/gtar: ./public_html/webmail/SQL: Cannot stat: Permission denied /bin/gtar: ./public_html/webmail/config: Cannot stat: Permission denied /bin/gtar: ./public_html/webmail/logs: Cannot stat: Permission denied /bin/gtar: ./public_html/webmail/program: Cannot stat:...

Linux permission denied after chmod a=rwx

Hi everyone, So I have a little Linux problem, geez that will teach me to spend so many years on Windows. Anyway I did a little java app, wrapped nicely with the Java Service Wrapper script, but when I run that script: sh ./wrapper.sh console I get permission denied right away. The permission denied message is like that: eval: 1: /h...

Creating SQL Server backup file (.bak) with c# to any location

Hello all! I'm trying to write simple application in C# which will allow me to backup, zip and send over ftp my SQL Server database. One problem I have encountered is that I'm not able to create the backup file (.bak) if I try to do it in different location than "C:\Program Files\Microsoft SQL Server\MSSQL.3\MSSQL\Backup" or "C:\Program...

Permissions error accessing MSMQ from ASP .Net Web Service

I have written a web service that reads from a message queue. This works fine under Cassini. Now that I have deployed the service under IIS, I receive an error message when the service tries to access the queue: The queue does not exist or you do not have sufficient permissions to perform the operation. I have set the anonymous acces...

Edit only owned list items in Windows Sharepoint Services 3.0

Is there a way to limit the "edit item" permission in WSS 3.0 to only allow a user to edit his own documents or list items? We need the ability for a user to edit only documents/list items he creates - NOT items that someone else created. So, essentially we need a sub-set of the EDIT permission as well as ADD. Is this possible in Wi...