permissions

Django: How to get the permissions of a list of users

So in my application, users can assign basic privs to other users who don't have privs and also make take them away. However, anybody who has these basic privs may not grant or revoke admin privs. So, in my template where I iterate over the list of site_users (for site_user in site_users), how do I get the privs of site_user? I can only...

Permissions in a MAMP development enviroment

Hello I use MAMP as my local development environment. A persistent problem I have is reliably setting folder/file permissions. For example, I currently have an images folder I need 666 permissions on. In the more info menu in the mac finder my permissions are read & write. However in the Dreamweaver permissions dialog the same folder ...

does RoR develpment need shell access?

let's say that RoR development environment is set up and working does the developer need shell access to develop the RoR application? would ftp be good enough? why? I don't want to give my future developers ssh access to my linux box. Or can I set up their file permission so they can read only their project directory? UPDATE the who...

What is the status of DJango Row based permission?

Is it DJango Row Level Permission ready to use in application development? Or is it just a hook so far, that require third party component to work properly? As of DJango 1.2, syncdb didn't create any special tables/fields to handle Row Level Perimission. If not available, what is the best dependable implementation available as open sou...

Ruby Bundler Permission issue

So, I'm positive I once did a 'sudo' bundle install' out of desperation, which I now understand is a no-no. But now, when i try to run 'bundle install', I get the following error: Installing culerity (0.2.12) /Library/Ruby/Site/1.8/rubygems/installer.rb:294:in `generate_bin': You don't have write permissions into the /Library/Ruby/Gems...

how to create a Mysql db user with read access to filesystem

Hi, I'm trying to run mysql hot copy and I want to create a user account to run that process. However, whenever I create a user account (granting it specific priviledges) and run mysqlhotcopy there is always the error Unable to retrieve list of tables in {dbname}: DBD::mysql::db selectall_arrayref failed: Can't read dir of './{dbname...

GUI Best Practice: When designing a webbased management interface, it is best to use a detail view or to use forms with values as primary view?

To clarify the question, imagine having a paginated list with clients. When clicked on a specific client the system will open the 'view client x' view in order to show the client details. Now, will this view be a 'simple' list which displays client details? Or will this view be a form with input fields showing the client details and a...

Possible data loss when Java application writes text files to disk

I wrote a simple Java application that reads and writes journals (encrypted text files) for a small company "XYZ". The journals are stored on an OS X server and all client computers access the journals on this server through an ethernet connection. Another independent company, "ABC", installed and configured the network and its nodes. Co...

how to change folder permision in cms made simple

im working with cms made simple.my problem is my template folder permission.in this cms when a template uploaded,a folder (by the same name of that temlate,for example : 'TEMP1') creates and it's permission is set to 0755.when i want to change permission of the template folder i will get this error : FileOp Failure on: /home/visamas...

Blackberry camera permission

One of the features incorporated in my app is QR code scanning. The problem is, user will be asked for camera permission before scanning. I think this could make the users confused. Is there any way to bypass this, or something to set all the required permissions during installation, so users don't need to set this manually? I already ...

How do I check if I have write permissions in the current path

in php how do I determine whether or not I can create a file in the same path as the script trying to create a file ...

A better way to describe CRUD in a web application?

Hello, We've been refactoring our web-based admin application (again) and got a bit stuck when describing the permissions involved in what we used to call CRUD (create-read-update-delete) operations. We've found that simply trying to describe an action/permission in terms of CRUD doesn't really apply to a web-app. It seems that CRUD as ...

How to compile Android Application with system permissions

I need to compile an application with system permissions in order to use target application com.android.settings. For now while I try to run my apk I get the error message Test run failed: Permission Denial: starting instrumentation ComponentInfo{com.jayway.test/android.test.InstrumentationTestRunner} from pid=354, uid=354 not ...

How can I use Delphi to test if a Directory is writeable?

Currently I use this function, based on JCL code, which works fine: function IsDirectoryWriteable(const AName: string): Boolean; var FileName: PWideChar; H: THandle; begin FileName := PWideChar(IncludeTrailingPathDelimiter(AName) + 'chk.tmp'); H := CreateFile(FileName, GENERIC_READ or GENERIC_WRITE, 0, nil, CREATE_NEW, FILE...

PHP: Why is readdir working for me at command line but not browser?

I have 2 folders: /var/www/vhosts/mydomain.com/httpdocs/ and /var/www/vhosts/mydomain.com/httpdocs/duh/ Both folders have the EXACT same perms, group, owner, everything. If I set $path to the first one, no problems, I echo a list of files with 'html' in the filename. If I set $path to the second one, it dies on the opendir(). However,...

mysql permissions needed to do a ALTER TABLE in database

grant LOCK TABLES, SELECT,ALTER,INSERT,CREATE ON `databasetoupgrade%`.* to 'someuser'@'localhost'; those are the privileges I gave a users that needs to be able to ALTER a table (add columns, ...) the mysql documentation states that alter, insert, create is needed, but even with lock tables and select permissions, I still get the erro...

Database permissions issue using MSI/WIX 3.5

Hi, I've created a WIX DB installer. It works on my DEV machine using SQLEXPRESS but not on my test machine using (local). I confirmed that the server is correct in each case, using Orca. The following, is pretty much what I'm using, only with a few more scripts. the scripts are known to work fine, and if I take them out altogether, it ...

Windows Forms custom control: focus and cursor keys without UIPermissionWindow.AllWindows

I want to write a custom control (a text editor) for Windows Forms, which should include the following functionality: Gets the keyboard focus, when you click on it with the mouse Sees all keyboard input (including cursor keys), when it has the focus, Can run in a semi-trusted environment, with UIPermissionWindow.SafeTopLevelWindows (i...

Allow www-data to edit a vhost file

Dear All, What is the most secure way to achieve above? I want to edit apache VHOST file through my Rails application. Thanks, Imran ...

Launch user mode process from Admin mode process

I have a win32 process running as admin mode. I cannot change the fact it's running in admin mode. I have an executable on my system which I'd like to launch from that admin process, but have it run in user mode. How do I achieve that? ...