permissions

How to give permission to a directory using command prompt in Windows?

I have to give permissions (Read, Write, Modify) to a user to a directory using command line in Windows. ...

Samba share on htdocs, getting permissions error on write

I've installed SAMBA on my ubuntu 10 server along with XAMPP. I'm trying to create a share to be able to easily manage files from my windows box. Unfortunately, I'm running into a write error. I can browse the share/folder just fine. I can read all the files... but I can't create any new files (or save changes to existing ones). smbd.co...

Permits in iPhone apps

HI, I want to create i file in the iPhone application. I try it but i have a anomaly. In my pc the file is correctly written. In other pc with the same program the file wasn't exist. In the iPhone device the file not exist. But the strange think thing is that i haven't any error for the app in the all case. Do you have a idea? Thanks so ...

before filter not working as expected

Hey guys I have a ruby on rails app with a before filter setup in my application controller to ensure only the owner can edit a document, but my permission check is always failing even when it shouldn't. Here is the code: def get_logged_in_user id = session[:user_id] unless id.nil? @current_user = User.find(id) end end def re...

How can I implement forum privileges

I've started developing a forum application in PHP on my MVC Framework and I've got to the stage where I assign permissions to members (for example: READ, WRITE, UPDATE, DELETE). Now, I know I can add 5 columns under the user table in my database and set them to 1 | 0, but that to me seems like too much if I want to add other rules, l...

C Privilege Escalation (With Password)

Hey everyone, I need to write a C program that will allow me to read/write files that are owned by root. However, I can only run the code under another user. I have the root password, but there are no "sudo" or "su" commands on the system, so I have no way of accessing the root account (there are practically no shell commands whatsoever...

Why am I getting a permission denied error on my public folder?

Hi all, This one has got me stumped. I'm deploying a Rails 3 app to Slicehost running Apache 2 and Passenger. My server is running Ruby 1.9.1 using RVM. I am receiving a permission denied error on the "public" folder in my app. My Virtual Host is setup as follows: <VirtualHost *:80> ServerName sharerplane.com ServerAlias www....

File permissions question

If I need a php-page to have access to upload images and move images from a folder on the server, what permissions would I set on the folder then? I know we have "Owner", "Group", and "Others". But what does the server (or the php-code itself) count as? Owner? Also, would I need to set the php-page with the upload script with some spec...

Move a file with ImpersonateLoggedOnUser

I am trying to move a file, but gives this error: System.UnauthorizedAccessException: Access to the path is denied.. at System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO._Error.WinIOError() at System.IO.FileInfo.MoveTo(String destFileName) To move the file, I have this code: public void MssFile...

How to avoid permission denied when deploying with tomcat manager?

I'm trying to deploy a web app located in my home directory using the tomcat manager app (through its web interface) and get the following error: java.io.FileNotFoundException: /home/rick/projects/my-web-app/build/war (Permission denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Fil...

Permission differences between windows service and console application

Hello! I'm developing an application with a smart card involved (digital signature). Let's assume that we have the same code in this two contexts: Console application, executed by Administrator user Windows Service, executed by Administrator user I suposed that if this two codes were executed by the same user they would have the sam...

FB permissions, fb tags vs. javascript

Is my understanding correct, that in FaceBook development I can request application permissions (for user data, posting to his wall etc.) in 2 ways by using some static permission-requesting fb-tags in html code or by using facebook JavaScript libraries/objects for dealing with permissions? If so, are these ways serving the same purp...

Securing Wordpress on Apache

Hello, I've just set up a Wordpress blog on Slicehost using Ubuntu Jaunty and Apache. I would like to have a clear overview how to fully secure it. I've read plenty articles on the net but none answers my questions: do I need to create a special user/user group for running wordpress? if yes how I configure Apache, sftp and wordpre...

Accessing a drive on remote server via app.config

I am working on a website with a scheduled dataloader exe. The website lives on the web server and the dataloader lives on the DB server. One of the steps in the process is for the dataloader to access the WEB server (to copy/paste a maintenance page file..e.g.\192.168.1.101\c$\maintenance.htm). I am, not surprisingly, running into ...

chgrp permanently for a directory

I'm running a CentOS 5.0 server with root access. The /var/www folder was originally set recursively with root as the owner and group. So I did a chgrp -R webdevs /var/www and a chmod -R g+rwx /var/www command to give all members of the webdevs group read/write access. These changes work as required for all preexisting files. However, ...

Redirect to home when a 403 error occoured in Turbogears 3

I am in a standard paster-generated turbogears 2 project. I am using: allow_only = not_anonymous(msg=l_(u'You must be logged in')) And I am using generated error.py controller. The issue is that I want to redirect the user to the front page('/') when the error controller identifies and 403 error. Then I have tried tg.redirect(url('...

ACL group structure: top down or bottom up?

I've put together an ACL permissions system into my application and I'm now wondering about how best to use it, especially in regards to user groups. In it's simplest form, there will be several "role" groups ("admins", "editors", "users", etc) and all users will belong to one of these groups. My question is: in your experience, is it ...

Microsoft IIS: how can I change file permissions ?

how can I change file/folders permissions on Microsoft IIS ? Should I use icacls ? Can I use it from ftp ? I'm currently logged in with Microsoft ftp protocol but I get: ftp> icacls ?Invalid command. What's the equivalent of ls -l (to see the permissions) and chmod -R folder +arwx thanks ...

Cannot upload media via Wordpress uploader

This has to do with media uploading in Wordpress. Every time WP creates a folder for new uploads (it organizes uploads by year and month: yyyy/mm), it creates it with the "apache:apache' user and group, with full access to all (777 or drwxrwxrwx). However, after that, WP cannot create a folder within that folder (e.g.: mkdir 2011 suc...

UAC on Win Server 2008 causing me a headache!

My installer deploys a configuration exe which is used to do some basic configuration on a windows service which is also installed. The exe also needs to create and write some registry keys. On a Windows server 2008 environment these keys can't be created. I have investigated and found that this is an Administrator privilege, and the exe...