Programming :: Applying Group Ideology To Web Applications?

Dec 2, 2010

I have built a database driven web application that has a user and group system that works in a similiar way that Linux handles user access. Breif explanation: A users can access various resources, the resources are assigned to a single group and users can have many groups.

Users

Code:

id name
-- -------
1 RedRanger
2 GreenRanger
3 BlueRanger

[code]....

Lets say that RedRanger needs to be denied access to resource a if I remove him from group 33 he can no longer access b or c which is no good. The only alternative is to change a's group and add everyone else to the new group, this isn't so bad for 3 users, but what about 3,000?

View 1 Replies


ADVERTISEMENT

Programming :: Bash - Search For 1000 Then Assign Them Group 1 And Then 1001-1999 To Group 2

May 24, 2010

I have a text file that currently has around 150 000 usernames in it. I need to somehow group them into smaller groups of 1000 and then add that value into the DB. for example user xzy group 1 (hopefully the groups will be digits incrementing)

[Code]....

how to search for 1000 then assign them group 1 and then 1001-1999 to group 2 etc.

View 3 Replies View Related

Programming :: Applying A Script To All The Files Of The Find Command?

Oct 18, 2010

Code:
find "$SOURCEDIR" -type f -name "*$ITEM" -printf "%P
"

I want to apply some shell script to the files outputed by the find command.

How can i do this.?

There are multiple files directories and also multiple files.

View 14 Replies View Related

Programming :: Applying Configuration To Serial Port - Strict Termios

Dec 28, 2010

I'm using the serial port of a device to communicate with a hardware. (that can assume some different configurations of baud rate, data bits, etc.) Well, I can obtain that configuration, but I'm not certain in how to apply them to the serial. I'm using the struct termios to do that. I did some search, and found how to configure the baud rate and data bits. I'm doing this:

[Code]....

how I set the stop bits (1, 1.5 or 2 bits), the parity (even, odd, none, mark or space) and the flow control (hardware, software, none or xon/xoff)?

View 1 Replies View Related

Programming :: Isolate Users From A Group?

Dec 5, 2010

how to isolate users from a group ie accounting and force them to change their password upon login

View 1 Replies View Related

Programming :: Get Group Name From GID Without Parsing /etc/groups?

Sep 14, 2010

Is there a Linux system call that can be used to get the group name from the GID returned by stat()? I realize that I could parse /etc/groups (if my user had sufficient permissions).

View 3 Replies View Related

Programming :: Bash Script Multithread In Group Of 3?

Jun 1, 2010

I Have an script like

./bang 1
./bang 2
./bang 3
./bang 4

[code]...

and i wanna execute him in groups of 3 , i mean he execute bang 1 , bang 2 and bang 3 after it finish the next 3 commands it will be executed and so on , in groups of 3.

View 3 Replies View Related

Programming :: Set For A Group Of Command Line Arguments?

Oct 11, 2010

i was wondering if someone could help me figure out a script for global variables i'm trying to set for a group of command line arguments:

basically i'm trying to set: if $# = 3 then i want to search for each all string $1 $2 $3

if $# = 4

then i want to search for each all string $1 $2 $3 $4

View 2 Replies View Related

Programming :: Create Single Group From All Other Groups?

Mar 14, 2011

I would like to create a bash script that creates a single group from all users in other groups.

I've been at it most of the day, and I think I'm making it too complicated. I have about 100 lines of code, and it's still now working the way I would like. I'm starting to trip over my own feet with the amount of if statements and variables.

View 1 Replies View Related

Programming :: MYSQL Select ORDER BY, GROUP BY Together?

Apr 19, 2010

I'm writing a PHP script, and I need a top 10 result from a mysql query.I've tryed like this:select IP,sum(download) from traf group by IP order by ASC limit 0,10and my sql returnsmysql> select IP,sum(download) from traf group by IP order by ASC limit 0, 10;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC limit 0, 10' at line 1As I red through Google this is not quite supported by mysql, so is there another way to do this?

View 5 Replies View Related

Programming :: Script To Copy Files From One Host To A Group?

Mar 31, 2011

I have one script that goes through some IPs:

###############################3
#/usr/bin/sh
# This is a script to copy files from one host to a group of

[code]....

View 6 Replies View Related

Ubuntu :: Create A User Group That Restricts Internet Privileges To Only Members In The Group

Jul 19, 2011

How can I create a user group that restricts Internet privileges to only members in the group, then I will assigns certain applications to join the group for access to the Internet.

For example, I want only group net to have access to the Internet. Group net is then connected to:

Code:

So far, I am using the gnome group policy manager that is standard with ubuntu but Its not working. It is possible that im misdirected and that I should use a firewall instead?

View 2 Replies View Related

Programming :: C++ Determine If Current User Is Member Of A Specific Group?

Jan 12, 2011

What functions are available on linux for a c++ program to determine if the current user is a member of a specific user group?

View 3 Replies View Related

General :: Secondary Group Users Need To Change File Permissions Of Primary Group Files?

Oct 19, 2009

i want secondary users can able to change the files permissions of primary group?user MAC is having www as a primary and httpd as secondary group. But he want to change the file permissions (chmod) httpd group files. Is it possible or not? I think its not possible. If it`s possible then let me know how?

View 3 Replies View Related

Software :: EXT3-fserror: Inode Bitmap For Group 4 Not In Group

May 25, 2011

I've been tasked with fixing a Red Hat system that dies with a kernel panic during the boot stage:

Code:

EXT3-fserror (dev sda1): ext3_check_descriptors: Inode bitmap for group 4 not in group (block 67239937)!
EXT3-fs: group descriptors corrupted!
mount: error mounting /dev/root on /sysroot as ext3: Invalid argument

I can boot into a Rescue CD, but I'm a bit out of my element because I don't use EXT3 myself, and I've never had to repair a corrupted file system before.

View 3 Replies View Related

General :: Group Member Not Able To Write To Group's File?

Feb 8, 2011

I have a group (GROUP) with a number of users. I recently added a new user (NEW). NEW is able to read but not write group files, whereas all the other users in the group can read and write to the group files. The permissions for the group files indicate that all members of group should have write permission -rwxrwxr-x

/etc/group indicates that NEW is a member of GROUP
...
GROUP:x:501:GROUP,OLD,OLD2,OLD3,OLD4,....,NEW

[code]....

Don't know if it matters, but both OLD and NEW write to the GROUP files over an internet connection. why NEW can't write to GROUP files? Is there a maximum number of members in a group that I might have exceeded?

View 2 Replies View Related

Programming :: Python Regular Expression - AttributeError: 'NoneType' Object Has No Attribute 'group'

Aug 23, 2010

I am trying to scan a website for http references (links) with this script:

Code:

from urllib import urlopen
import re
current_site = urlopen("http://en.wikipedia.org/wiki/").read()
search = re.search('href="[a-zA-Z0-9]"', current_site)

[code]....

I get the following error message:

Code: Traceback (most recent call last): File "C:UsersadminDesktopcrawler.py", line 8, in <mo print search.group(0) AttributeError: 'NoneType' object has no attribute 'group' I have googled the error

View 2 Replies View Related

Ubuntu :: Error - Group: Cannot Find Name For Group ID 0

Apr 17, 2010

Mount of filesystem failed. A maintenance shell will now be started CONTROL-D will terminate this shell and retry. groups: cannot find name for group ID 0 root@Sergioc-desktop:"#

View 2 Replies View Related

General :: Security Group Can Be A Member Of Another Group?

Aug 22, 2010

I need to create a group that has the same permissions as the users group. Can I have the new group be a member of the "users" group to inherit its permissions?

View 4 Replies View Related

Security :: Add A Group Of Users To The Wheel Group?

May 19, 2010

I have a number of users, categorised into various groups. I would like one of those groups ("developers") to be in the wheel group as well. I don't want to just copy the people from the developers group into wheel, because then when that group changes I'll have to change it in two places. Is there a way to specify that anyone in developers is in wheel, and have that be dynamic?

View 7 Replies View Related

Debian :: Group A Member Of Another Group?

Feb 8, 2011

I make a group a member of another group?

I am running Samba and want to include all groups as members of the Domain Users group so that I don't need to add this for every user?

View 3 Replies View Related

Programming :: How Applications Are Built

Mar 28, 2010

I've heard a long time ago that linux applications are built by having a CLI first, and later writing a GUI above that. Does someone have any reference/links about that subject? I'm interested in the principles of this method.

View 7 Replies View Related

Programming :: Some Popular Web Applications That Use Ruby?

Dec 12, 2010

What are some popular web applications that I've seen that use ruby?

View 1 Replies View Related

Programming :: Can Php Script Execute X11 Applications

Jun 2, 2010

If I put

Code:

$r = exec('whoami');
echo $r;

into my php script, it works fine. However, if I put

Code:

$r = exec('myX11application');
echo $r;

it doesn't (to be precise, the script still works, but myX11application is not executed). Of course, scripts are run by user "apache", who doesn't have access to X11 server and doesn't even have DISPLAY variable defined.I installed virtual framebuffer Xvfb, created a small bash script:

Code:

Xvfb :2
export DISPLAY=:2
myX11application

and called it with exec from php, but it still doesn't run since it looks like Xvfb can't start if the normal X server is running (I need that for development purposes). The reported error from Xvfb is

Code:

(EE) config/hal: NewInputDeviceRequest failed (2)

Is there a solution to have php running your X11 applications with normal X server running?

View 6 Replies View Related

Programming :: Get List Of Recently Or Most-used Applications

Dec 5, 2010

Is there something like GtkRecentManager that will give you a list of recently-used or most-used applications instead of files, or will GtkRecentManager give you apps too?

View 1 Replies View Related

Programming :: Best SDK Tools For Creating Applications?

Jul 21, 2011

I'm new on software development and I interested which SDK tools are best for creating application for WM platform, Android etc. Also my another question is on which distribution of Linux is best to do this?

View 2 Replies View Related

Programming :: Using Ssh Cant Access Applications Off Of Host?

Oct 20, 2010

I am using ssh on windows XP to remotely connect to a UNIX server that provides web application development services. The server is called snapper and is also designed to run computer-intensive engineering and GIS applications. I have been able to successful access the server. However, when I try to run an application I get an error message saying:Application initialization failed: no display name and no $DISPLAY environment variable

The ANSYS Launcher could not be started The most likely reason is that your DISPLAY environment variable I either not set (i.e. issue setenv DISPLAY dev:0.0 where dev is your device name) or is set to a device that is not accepting the connection. I was hoping someone could explain to me what the DISPLAY environment variable is and how to set it.

View 14 Replies View Related

Fedora :: Put New Application Under Applications->Programming Menu

Feb 4, 2011

I just installed GNAT GPS and would like it to display under Applications->Programming drop down menu. How does one do this? I have read about creating a .desktop file but tried that and it still does not appear under the menu I like. It does appear on the desktop but not because of the .desktop file.

OS: fedora 14 63-bit
CPU: CPU AMD-64

An example file (if needed) would be nice.

Also, just as a extra, has anyone found the GNAT GPS icon (.png) file?

View 1 Replies View Related

Ubuntu :: Dropbox Files Not Applying?

Nov 29, 2010

Ok I have used dropbox for a long time but never had an issue but since recently switching to Ubuntu it seems that when I download a file and drag it into my dropbox the file shows in dropbox but it doesn't seem to be applying ...after dragging it into dropbox in the upper right hand corner of the file there is a blue circle with two white arrows in it while all existing files that I out into dropbox prior to using Ubuntu are there and accessible and have a green checkmark in the upper right hand corner..

View 4 Replies View Related

Software :: Applying Patch In RHEL 3.3

Sep 7, 2010

I've a problem applying a patch in RHEL 3.3.

In RHEL there is a problema with ACL as can be read in: [URL]

I've downloaded the patch from "Attachments". I try to apply the patch, but I receive this error:

usr/src # patch -p0 < aclPatch.txt can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option?

The text leading up to this was:
--------------------------
|diff -uNr acl-2.2.3.org/libacl/acl_get_file.c acl-2.2.3/libacl/acl_get_file.c
|--- acl-2.2.3.org/libacl/acl_get_file.c 2002-09-05 08:19:54.000000000 +0900
|+++ acl-2.2.3/libacl/acl_get_file.c 2004-08-25 12:49:58.000000000 +0900
--------------------------
File to patch:
========================================================

It seem that can't find acl_get_file.c, no?

- Where can I download the src file?

- Or what's the problem?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved