user

How to execute shell script via sudo user...

Hi All, I am new to shell scripting.... Can someone give an example of running shellscript via sudo user... I tried like this.... sudo /usr/local/sbin/deploy | ./tmp/cp1.sh the above script is executed as a normal user not as the sudo user... Any help is apprciated,... With Regards, Ramesh.T ...

ModalPopup CodeBehind Function Wait For User Response

I have set up a function which returns an enum of the button that the user clicked in the ModalPopup. I have a variable of type enum to store which button the user clicks in the button click event. In this function, I call the ModalPopupExtender's Show() method. My problem is, the function finishes out and returns the default enum (wh...

How to create the first administrator user of an application?

Consider a simple web application that accepts user logins. Each user can have a profile (read-only, normal, administrator etc) and each profile dictates the user’s rights (he can only look at data, he can modify data but only if it is its own, he can do everything if he is an administrator etc). Only an administrator can create other u...

MySQL, Permission Issue

Hello, I have a MySQL database that has several databases used by more than 1 web app. I need to now create a new Database that can only be accessed via a new user account. I've been using Navicat v5.3.3 manage users to try to set this up but it doesn't seem to work and I don't know if that's bec of MySQL or Navicat. But given that I ...

How to make a "recent seen pages" for user registered in wordpress

Hi all! Is there a plugin that returns to a wordpress registered user the last pages that he has seen on a blog? Thanks in advance, Joe ...

Can different users have same USER ID in MOSS 2007

Hi I am just curious to know whether different users can have same user ID in MOSS 2007. I have two SharePoint groups with different set of permission levels. SharePointGroup1 is in root site. The subsite has unique permissions, i.e., it is having SharePointGroup2 with different set of users. Is there any chance to have same user ID for...

Changing user roles through a form

I'm trying to create a Rails form that allows an admin user to change the assigned roles of other users. The form I've created registers changes to the user (such as password or login changes), but doesn't register changes to the user's role, which is a separate model. I'm using Acl9 for role-based authentication, which uses a User ...

Set REMOTE_USER

Does anyone know of any open source code (or ideally a downloadable module) that allows you to set REMOTE_USER? I believe this can only be done via an ISAPI filter and there are no options in HTTPHandler or HTTPModules etc. ...

Sharepoint Redirecting Users or Groups from a page to another.

Hello , What I am tring to do is, when people comes to that page: http://server:26521/MY%5FPortal/service/default.aspx I want them to be redirected to that page http://server:26521/default.aspx Depending on their User name Or User Group. Thanks for helps. ...

what user I should run my nginx or php-fpm processes

Ok. Im little bit confused about those permissions in linux so please people help me out. The trouble is that I dont want to run server as root, so I created another user with sudo privileges so he runs the nginx and php-fpm servers (example "sudo_user"). But the trouble is for example I have "some_user" and he has a directory of his web...

1000 users a day for 10 minutes equal what concurrent load?

Is there a formula that will tell me the max/average # of concurrent users I would expect to have with a population of 1000 users a day using an app for 10 minutes? ...

Xcode: entering user input when debugging

int main() { cout << "Buy or sell (b/s): " << endl; string buy_sell; cin >> buy_sell; ..... } when i try to step through this in Xcode, i just stops at the cin >> buy_sell line, because it's waiting for the user input. How do i enter the value i want in the debugger so i can move past this? I'm using Xcode 3.2.1. (I k...

Adding child to user contol in design view

I have a user control in WPF. I have to add children in the design view when user control is added to a window. ...

Fetching unix users from SQL Server

Hi, We have some tables where we store some sensitive information. These tables have one extra column "ModifiedBy". Currently we insert the value for this column programmatically. I am wondering if we have some way to get the current unix user into SQL Server. The idea is to auto-populate the user name/id into that column with the use ...

Getting a list of users on a network domain

I want to get back to get a list of users on a network domain using VB.Net. I will have the domain name available to me for use. Thanks in advance. ...

Help with storing/accessing user access roles C# Winforms

Hello, firstly I would like to thank you in advance for any assistance provided. I am new to software development and have designed several Client/Server applications over the last 12 months or so, I am currently working on a project that involves a user logging in to gain access to the application and I am looking at the most efficient ...

Video recording without user interaction

Hi, I want to record video with new iPhone SDK available on 3GS without user interaction. I went through UIImagePickerController and UIImagePickerControllerDelegate class reference. But nothing important came up.I also tried to look at the sample code provided by Apple. I am still trying to figure out that is it really possible to recor...

What is the sig parameter passed into registerUsers method on facebook

Hello I have a problem of understanding what the sig parameter is and how to generate it. I have read the documentation in registerUsers but not sure what and how to get it. ...

Effect on clients of moving from .NET framework 2.0 to 3.5

We have a desktop application run on a few thousand client computers. We want to move from framework 2.0 to 3.5, but are concerned with the impact on clients. I understand that 3.0 and 3.5 are additions to the framework, and that they install service packs to 2.0; what I want to know specifically: When a client upgrades to the latest...

How to identify if currently logged in user is an LDAP user in Solaris

Hi I am new to LDAP. I want to know how to identify if the currently logged in user in Solaris is a LDAP user or local user. Any command? or any C Run time functions like getspname, getpwnam which returns an attribute saying it is an LDAP user or local user after user logged in. I am looking for Solaris. ...