user

Add a Ubuntu User from Web Interface

Hi, I have been tasked with the job of creating a web based system to add system users to our Ubuntu linux server. I have been reading up online, and there seems to be a fair few different ways to go about doing it, none of which really have examples. I understand the best way for me to do it would be to temporary give sudo to the apac...

Caching custom user properties in ASP.NET MVC

I have custom UserInfo and UserAuthorization objects in my app, which determine what is displayed and what actions a user can perform on each page. At the moment this information needs to be retreived for every request to the server. Would it be possible/sensible to cache this information somehow? Can anyone suggest some good google sear...

Get current user's last logon

I am trying to get the current's user last logon. I might be this current session or it might be one before that. I am calling GetUserName() to get the current username. I feed that into NetUserGetInfo() to try to get the last logon time. All this fails with error 2221 (user not found). When I tried with "administrator" it works. Even wh...

User profile picture is not displaying properly on comments with Imagecache

I have a Drupal setup, and have created an Imagecache preset for the user profile to create a thumbnail picture. I have enabled user pictures on node comments, but the picture is not displaying correctly When I view the source, it shows the correct path being "sites/default/files/pictures" etc but ecause the node path is something like...

Is there a way to output users name as a link to profile in Drupal?

Im using pathauto so user profiles have a clean URL in the format /user/name-name How can I output the users name as a link to the profile? Ive seen the theme() function used to do stuff similar to this? ...

wordpress get current user

hey there i have a directory inside my wordpress directory for some template application apacheWWW/wordpress/jtpc in my application i want the wordpress current user id i am able to do this in one page but in the other i get an error this is what i am doing to get the user id require_once( '/../../wp-load.php' ); global $curre...

php login user logic

hey all, so i've scrapped all the crappy tutorials that have never worked for one reason or another, and decided to roll out my own registration/login feature on my own, and to my surprise it actually works! But what i don't get is how the logic behind keeping somebody logged in works! Like, once they've logged in, do i just $_POST the...

Overriding the user registration form in Drupal 6

I want to be able to customise the user registration form in Drupal 6 I have found thousands of tutorials that show me how to override the structure in which you can output the form as a whole, but I want to move form elements around etc and I cant quite seem to see the best way to do this ...

How to show user specific features when they are logged in?

I am trying to write code for a site for my consulting practice. I know how to have a database and how to manage users on the site. But now I want to charge users for custom features they want me to build from ground up. (e.g they want an option to upload pictures or ability to get certain reports via 3rd party API, which for purposes...

Trying to find online users in rails

I am using the active record store to keep sessions in the database. Is there anyway to get the user_id from the session stored in the database? In my application im adding the user_id to a session when a user logs in using session[:user_id] = @user.id. Does doing this also update the session in the database with :user_id?. Thanks for an...

Are users active or inactive?

I'm trying to decide which is better: is a user inactive (can't login) or active (can login)? Do you have a flag which makes a user inactive so they can't login or do you have a flag which makes a user active so they can login? Which one makes more sense to the user and administrator? Which one do you do? Yes as Peter commented: Do y...

How to express "or" in a dictionary queryset in django

I'm filtering a big number of users based on attributes. For example, they can be filtered by minimum gpa. So far I've been doing the following to construct my queryset- ('gpa_gt' just means that the gpa property has to be greater than whatever is the query param) if len(request.GET) != 0: kwargs = {} if request.GE...

Django AdminSite: Display only a subset in ManyToManyField depending on user

Howdy, I'm using the admin site in django. By default there are the user and group models. I enabled to select the groups when creating a new user and I now want to filter the set of assignable groups depending on the current user. E.g. if the user is a superuser he is able to assign all groups. If he's within a subgroup, he can only as...

Process with administrative privileges run on user logon

I'm trying to figure out how to solve the privilege acquisition. The application requires a desktop access, so it cannot be executed as a Windows service: it have to create a window for receiving message sent by other processes using SendMessage (it must be used for waiting message acknowledge). The application shall be started when an...

C# WPF Program crashing when opened by a different Windows user

Hi, I've created an application that loads data in from XML files locally, and with these files it finds images, videos, and EXE's that the player can run from dynamically created buttons. When loading files and images and running EXE's, I try/catch all over the place as to not crash. However, today a user crashed the program by trying...

How to purge specific users/groups from a SharePoint site collection?

I am trying to write a utility to find/delete specific users and groups from a SharePoint site collection. At this point I'm using the SiteUsers property of the SPWeb class to do the job, but I'm wondering: why isn't there a similar property in the SPSite class? This seems completely counter-intuitive to me (though at this point nothing ...

SharePoint 2010 User Profile Management

Hi, I would like to make the User Profiles from SharePoint 2010, to be managed by a non-farm account. Is there a solution for this? Or do I have to make a custom Web Application that communicates with the User Profiles Service Application? Thanks, Voicu Seiche. ...

Customize the user creation process in liferay portal

Hi Friends, As we know, Liferay has the inbuilt functionality for creating users. But i want to have an workflow for creating users which involves approval process. I mean, user will be created by admin but it should be approved by another authorized person, then only the user account will be active. Is there any way to customize the u...

Managing users in the TFS work items "Assigned To" field

So I know there have been a couple of posts around about this topic, but I don't think they've quite got to the bottom of it! So my problem is that when I create a new work item in TFS, the users which I can assign it to include NT Authority\Local Service (which is also the TFS service account). I'm not asking why, as I know that this f...

php/mysql user management

HI Im trying to figure out a way to differenciate between free users and premium users in a mysql database. Both users need to register with thier username, password and email. When premium users register though, i need a way of distinguising them from feee uers once in the users table. Is there a way of autamatically populating a f...