List of available users

Hi All,
I need to have a list of all available users in an OS using java. Can anyone suggest how to achieve this.
Thanks in advance.
bubul

But how to get the list of the users in linuxHave your program read and parse /etc/passwd
(see http://linux.ctyme.com/man/man2325.htm)
You say "it is required to set access configurations for each individual
user available in an OS". It is far from clear why you would need
a list of all the users to do this. For example, why not let the user
set the configuration, and store this in the user's home directory?
If it is a security matter that the users themselves cannot set, the
network administrator should provide the configuration information
in a way your program can access (a file at a specific location, or by
using existing mechanisms like group membership). In this case your
program need only know about the identity of the current user.

Similar Messages

  • Gnome 3.16 GDM doesn't show available users

    Hi,
    since the latest Gnome 3.16 update, GDM doesn't show my available users. My users are LDAP users and I can sign-in with them. If I sign-out with an already logged in user then GDM shows the list of available users. I've also the problem that the avatar I've chose for my user will not be saved. Every time I sign-in I must chose the picture again.
    The log shows no abnormality. Does anyone have a suggestion or a similar problem?
    Cheers,
    Christian

    Same problem for me, I've tested with LDAP and Winbind users, without success.
    I can login with the "not listed" link and typing the username manually, but it's a real pain.
    The strange thing in fact, is that the users list appears after the first logout.
    Someone with an hint?
    Thank you.

  • How to list all available tables for user "karl"

    How can I list all available tables (=table names) for user "karl"?
    Nice to have would be if (after each table name in another column of each row) the number of data rows in this table can be listed similar to:
    TABLE NUM ROWS
    TESTA 12
    TESTB 3455
    ANOTHERTAB 234
    How can I do this?

    from Laurent Schneider
    http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html
    SQL> select
      2    table_name,
      3    to_number(
      4      extractvalue(
      5        xmltype(
      6 dbms_xmlgen.getxml('select count(*) c from '||table_name))
      7        ,'/ROWSET/ROW/C')) count
      8  from user_tables;
    TABLE_NAME                      COUNT
    DEPT                                4
    EMP                                14
    BONUS                               0
    SALGRADE                            5

  • Trying to download a movie on a laptop.  tellls me i can't play it on that computer because my apple account has too many users.  how do i see who is listed as a user so that i can delete one if it's not needed

    trying to download a movie on a laptop.  tellls me i can't play it on that computer because my apple account has too many users.  how do i see who is listed as a user so that i can delete one if it's not needed
    please help
    [email protected]

    The list you saw that shows what drivers are available from Apple Software Update is based on what drivers are supplied by the vendor to Apple. So it would appear that HP has not provided Apple with a scanner driver for 10.9 (known as an ICA driver), or provided an update if one was available for a previous version of OS X, so that you can scan from Image Capture.
    I checked the HP web site for your model and they don't show any scanner driver or scanning software. If there was a scanner driver, you would be able to use Vuescan.
    As for the Scan button not working, the following is documented by HP
    Scanning to the computer from the printer control panel is not available when you scan with Preview, Image Capture, or Printer browser methods. You must use HP Scan software to scan from the printer.
    But there does not appear to be any version of HP Scan software available for 10.9. So unless someone else has some workaround, it seems that you won't be able to scan with this model of HP.

  • ChaRM: approving of a change request by various list of end users

    Dear, experts.
    Can I customize ChaRM so, that before initiating change request  a support message should be approved by  by various list of end users depending on component (component A - list 1, component B - list 2)?
    For example some end-user wants to change  established business-process. In this process are involved other end-users, so to trigger changes he have to ensure that other end-users are agree.
    can you suggest any profitable solution?
    thanks in advance

    Hey talgat,
    what you need is an action that uses pfac (it s a transaction for defining rooting rules). Thanks to this transaction you can define rules that will be based on different fields of ticket od crmd_order to assign the right person to the ticket
    There is a standard action that does those kind of things called SLFN0001_ADVANCED_FIND_PARTNER of action profile SLFN0001_ADVANCED available in transaction sppfcadm. You ll notice that this action uses rule id AC13200137. Well you ll need to define your action that will be alike with your own rule that you ll have predefined in transaction pfac.
    Use a copy of the standard rule AC13200137 to do your own; it will ease the task for you.
    PS: this link could maybe help your understanding
    Support Team Determination
    Hope this helps
    Regards
    Khalil

  • Not Able to see SAP systems in List of Available SAP Systems for Crystal R

    Hi All,
    We have installed Crystal reports 2008 and SAP integration KIt client software on my machine. I am trying to create Crystal reports based on the BI query and I could see SAP Connections in the 'Create new connections list' but not able to see any SAP systems in the list of 'Available SAP Systems'.
    How to Add SAP systems to this list.
    Thanks,
    Chindam Praveen Kumar.

    1. Define an environment variable (user or system) with the name SAPLOGON_INI_FILE . This variable should contain the path to your saplogon.ini file including the file name eg. if the saplogon.ini resides in the folder c:\windows the variable should contain the following value c:\windows\saplogon.ini
    2. Open your saplogon.ini file using Notepad and go to File->Save as. Choose All Files in the field Save as type and DO NOT change the name of the file. In the field Encoding make sure that UTF-8 is selected.
    ingo

  • How can we find all the available  user-exits in sap without using SMOD?.

    How can we find all the available  user-exits in sap without using SMOD?.

    Hi,
    Please check this links for user exits list.
    http://www.planetsap.com/Userexit_List.htm
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/ab038.htm
    Regards,
    Ferry Lianto

  • How to remove list of available actions in cs5

    I installed actions in 2 places and now i have duplicates in the available action list (click the arrow to the right of the action tab to see the menu for add, remove, options etc and a list of all available actions and sets).
    I removed the actions from
    C:\Users\Hal\AppData\Roaming\Adobe\Adobe Photoshop CS5\Presets\Actions
    and from
    C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Presets\Actions
    and yet i still have the huge list of available actions in duplicate.
    How do I eliminate these?
    Thanks
    Hal

    Ah, my mistake.  I didn't understand you fully.
    I believe the actions that show up in that menu are in one of these folders:
    Photoshop 64 bit:
    C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Presets\Actions
    Photoshop 32 bit on a 64 bit system:
    C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Presets\Actions
    Photoshop on a 32 bit system:
    C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Actions
    You would need to move/remove the .atn files from the above folder(s) to get them to stop appearing in that list.
    -Noel

  • List the total users connected at point of time (portal admin)

    Hi Dev2Dev team
    Is there any way to get List of total users as well as specific users connected to portal at point of time
    is there any way to get the list from portal admin
    or from weblogic server
    is there any tool available for this
    can anyone provide me with the sample or code or tool
    Thanks
    Surya

    Hi All
    Is that the data's of login and logout details are stored in Pointbase db by default.
    I am using oracle where i have all my default portal tables.
    any info appreciated
    Thanks
    Surya

  • [Solved]How to list groups available

    I added my own user to my Arch setup. How would I get a list of available groups so I could add my user to them?
    Last edited by jordanwb (2008-09-08 02:01:18)

    Misfit138 wrote:
    kensai wrote:edit "/etc/group", add your username in front of the group you want to be in.
    hehe
    The 'Slackware Way'...
    Old habits, hard to break. Let me install Slackware on Virtualbox, I miss it.
    Last edited by kensai (2008-09-08 02:17:40)

  • Published list of available "Monitored Attributes".

    Hi all,
    I am trying to create some user defined monitoring alerts. Is there a list of available "Monitored Attributes", such as CpuUsage.usagePercentage, ProcessUsage.*, etc
    I have looked through the docs and can't see a list of available attributes.
    In the document "Advanced User Guide - E18416" they are mentioned on page 96 and page 99 point 3b mentions "javadoc public API". No idea what that means.
    Can anyone shed some light?
    Cheers
    Neil

    Hi all,
    Not to self: Install the SUNWxvmoc-sdk package and read the javadocs ;-)
    Cheers
    Neil

  • How to list the available algorithms ?

    Hi,
    I would like to get all the available algorithms so that the user can choose the one he wants.
    Is it possible to write a generic function that can encryt/decrypt a file with an algorithm as parameter
    Because I've got the following problem : I use this code to list the available algorithms :
    public static String[] getCryptoImpls(String serviceType) {       
            Set result = new HashSet();                
            Provider[] providers = Security.getProviders();
            for (int i=0; i<providers.length; i++) {           
                Set keys = providers[ i].keySet();
                for (Iterator it=keys.iterator(); it.hasNext(); ) {
                    String key = (String)it.next();
                    key = key.split(" ")[0];   
                    if (key.startsWith(serviceType+".")) {
                        result.add(key.substring(serviceType.length()+1));
                    } else if (key.startsWith("Alg.Alias."+serviceType+".")) {                   
                        result.add(key.substring(serviceType.length()+11));
            return (String[])result.toArray(new String[result.size()]);
        }    I call it as : getCryptoImpls("Cipher");
    But some elements of the list are not available !
    Other problem :
    I encrypt/decrypt files using a password, and when I use different algorithms when encrypting and
    decrypting, it works ! Strange ...
    I create a key like this :
    SecretKey key = SecretKeyFactory.getInstance(algo).generateSecret(keySpec);here is the whole code for you to understand better :
        /*  CLASSE                  : CryptoUtils                                 */
        /*  PACKAGE                 : crypto.utils                                */   
        /*  AUTEUR                  : Guillaume YVON                              */
        /*  CREATION                : 15-07-2005                                  */
        /*  DERNIERE MODIFICATION   : 17-07-2005                                  */
        /*  DESCRIPTION             : gestion du cryptage / d�cryptage            */
    package crypto.utils;
    import crypto.component.*;
    import java.io.*;
    import java.util.*;
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.spec.*;
    public class CryptoUtils {   
        public static final int ENCRYPT_MODE = 1;
        public static final int DECRYPT_MODE = 2;
        /* ----- D�claration de variables ----- */
        private static Cipher ecipher;
        private static Cipher dcipher;      
        /* Cr�ation d'un vecteur d'initialisation de 8 octets */
        private static byte[] salt = {
            (byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
            (byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03
        /* Compteur pour l'it�ration */
        private static int iterationCount = 19;
        /* Buffer utilis� pour transporter les octets entre les flux */
        private static byte[] buf = new byte[1024];
        /*            PROCEDURE D'INITIALISATION DES CLES DE CRYPTAGE             */
        /* PARAMETRES D'ENTREE                                                    */
        /*      - password => mot de passe pour le cryptage : String              */
        /* PARAMETRES DE SORTIE                                                   */
        /*      - aucun                                                           */
        private static void init(String password,String algo) {
            try {
                /* G�n�ration de la cl� de cryptage � partir du mot de passe */
                KeySpec keySpec = new PBEKeySpec(password.toCharArray(), salt, iterationCount);            
                SecretKey key = SecretKeyFactory.getInstance(algo).generateSecret(keySpec);
                ecipher = Cipher.getInstance(key.getAlgorithm());
                dcipher = Cipher.getInstance(key.getAlgorithm());
                /* Pr�paration des param�tres pour les ciphers */
                AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);
                /* Cr�ation des ciphers */
                ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
                dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
            } catch (Exception e){ System.err.println(e); }
        /*                   PROCEDURE DE CRYPTAGE / DECRYPTAGE                   */
        /* PARAMETRES D'ENTREE                                                    */
        /*      - mode        => mode de cryptage/decryptage : int                */
        /*      - in          => flux d'entr�e (lecture) : InputStream            */
        /*      - out         => flux de sortie (�criture) : OutputStream         */
        /*      - srcSize     => taille du fichier source : long                  */
        /*      - progressBar => barre de progression                             */
        /* PARAMETRES DE SORTIE                                                   */
        /*      - aucun                                                           */
        private static void crypt(int mode, InputStream in, OutputStream out, long srcSize,
    JProgressBarWindow progressBar){
            try {           
                if(mode == ENCRYPT_MODE){
                    /* Les octets �crits dans out seront crypt�s */
                    out = new CipherOutputStream(out, ecipher);
                }else if(mode == DECRYPT_MODE){
                    /* Les octets lus dans in seront d�crypt�s */           
                    in = new CipherInputStream(in, dcipher);
                /* Lit dans le texte clair les octets et �crit dans out pour le cryptage */
                int sum = 0;
                int numRead = 0;           
                while ((numRead = in.read(buf)) >= 0) {               
                    out.write(buf, 0, numRead);
                    sum += numRead;
                    Float percent = sum / (new Float(srcSize)) * 100;
                    if(progressBar!=null) progressBar.setValue(percent.intValue());               
                out.close();
            } catch (java.io.IOException e) { System.out.println(e); }
        /*             PROCEDURE DE LANCEMENT DU CRYPTAGE/DECRYPTAGE              */
        /* PARAMETRES D'ENTREE                                                    */
        /*      - mode        => mode de cryptage/decryptage : int                */
        /*      - algo        => algorythme � utiliser : String                   */
        /*      - srcFile     => flux d'entr�e (lecture) : String                 */
        /*      - tgtFile     => flux de sortie (�criture) : String               */
        /*      - password    => taille du fichier source : String                */
        /*      - progressBar => barre de progression : JProgressBarWindow        */
        /*      - text        => texte � afficher : String                        */
        /* PARAMETRES DE SORTIE                                                   */
        /*      - aucun                                                           */
        public static void launch(int mode,String algo,String srcFile,String tgtFile,String password,
                                    JProgressBarWindow progressBar,String text){
            try {           
                init(password,algo);                                  
                if(progressBar!=null && text!=null) progressBar.setLabelText(text);
                crypt(mode,new FileInputStream(srcFile),new
    FileOutputStream(tgtFile),FileUtils.getFileSize(srcFile), progressBar);                           
            } catch (Exception e) {}
        /*      FONCTION QUI RENVOIE LES IMPLEMENTATIONS DISPONIBLES POUR         */
        /*                          UN TYPE DE SERVICE                            */
        /* PARAMETRES D'ENTREE                                                    */
        /*      - serviceType => nom du service                                   */   
        /* PARAMETRES DE SORTIE                                                   */
        /*      - liste des impl�mentations : String[]                            */
        public static String[] getCryptoImpls(String serviceType) {       
            Set result = new HashSet();                
            Provider[] providers = Security.getProviders();
            for (int i=0; i<providers.length; i++) {           
                Set keys = providers[ i].keySet();
                for (Iterator it=keys.iterator(); it.hasNext(); ) {
                    String key = (String)it.next();
                    key = key.split(" ")[0];   
                    if (key.startsWith(serviceType+".")) {
                        result.add(key.substring(serviceType.length()+1));
                    } else if (key.startsWith("Alg.Alias."+serviceType+".")) {                   
                        result.add(key.substring(serviceType.length()+11));
            return (String[])result.toArray(new String[result.size()]);
        /*     FONCTION QUI RENVOIE LA LISTE DES TYPES DE SERVICE DISPONIBLES     */   
        /* PARAMETRES D'ENTREE                                                    */
        /*      - aucun                                                           */   
        /* PARAMETRES DE SORTIE                                                   */
        /*      - liste des services : String[]                                   */
        public static String[] getServiceTypes() {
            Set result = new HashSet();           
            Provider[] providers = Security.getProviders();
            for (int i=0; i<providers.length; i++) {           
                Set keys = providers[ i].keySet();
                for (Iterator it=keys.iterator(); it.hasNext(); ) {
                    String key = (String)it.next();
                    key = key.split(" ")[0];   
                    if (key.startsWith("Alg.Alias.")) {                   
                        key = key.substring(10);
                    int ix = key.indexOf('.');
                    result.add(key.substring(0, ix));
            return (String[])result.toArray(new String[result.size()]);
    }Any tip is welcome !
    (sorry for the french comments...)

    From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
    JAVAJAR$
    JAVAJAROBJECTS$
    By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
    These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
    But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier.

  • ExternAuth: Is there any way to get a list of the users currently in a room?

    There's a method that will get the room information. ( accountmanager.getRoomInfo(room) ) But I don't see anyway to get a list of the users in the room.
    Is this possible?
    -sandy

    we are working on server to server APIs that will allow you to fetch data (items) from node.
    when that is available you'll be able to get the user list from the UserManager node.

  • How to find out the list of all user's whose passwords are expired

    Hi
    i had tried to find out the list of all user's whose passwords are expired.
    i had written some jndi code by finding the max age and then find out the current time and subtracted this current time from max age using the following code
    "Attributes attbts=ctx.getAttributes("cn=pwdpolicy");
    String maxAge=(String)attbts.get("pwdMaxAge").get();
    Date Today = new Date();
    System.out.println("maxAge"+maxAge);
    long curTime=(Today.getTime())-Long.parseLong(maxAge)*1000;"
    and then parse it and create a string time as follows
    String time=year+month+day+hour+minute+second+"Z";
    where "year" "month" etc were parsed from curTime
    now i can get the list by using following code
    "String filterCriteria="(&(objectclass=person)(pwdChangedTime>="+time+")";
    NamingEnumeration results = ctx.search(baseDN,filterCriteria, sc); "
    but the current time which i am getting is the time of my system not the time of ldap server
    so my questions are following;
    1.Can there is any way by which i can get the tivole sever's system time.
    2.If there is no way then can you suggest any other way to find out the list of user's whose passwords are expired.
    please help me.
    Thanks.
    Krishan Rathi.

    Hi,
    Thanx for ur reply..
    I got the list from the table...
    thanks,
    sivagami

  • How can i get a list of the user created on a database?

    dear all
    i need to issue a query that return a list for all users that are created on the database
    please help

    You can have more refine search ,
    sql > select username from dba_users ;
    hare krishna
    Alok

Maybe you are looking for

  • How can I get an invoice for money taken from my card?

    How can I get an invoice for the money taken from my card???

  • BI server missing BI Publisher

    Hi, I have just installed Business Intelligence 11.1.1.5.0 under Oracle Apps R12 on WIndows xp. But the BI Publisher apear to be missing from the start programme menu and therefore unable to publisher anyr pd files. Please any idea will help. Regards

  • ITunes will not display ringtone eligible songs

    My iTunes music folder has suddnely decided to not display which songs that can be converted to ringtones. I have clicked on the bell icon and restarted iTunes and rebooted my machine but nothing seems to work. Any suggestions?

  • IF ELSEIF Problem

    Hi,   I am trying to do some math in the first IF statement:  divide total by 2.  When I look at my report the I am seeing the ({@Total}/2).  Here is my formula: If (CurrentDate> {@21Days}) OR (CurrentDate >{@LastMonth})THEN "NOTICE OF TERMINATION OF

  • Oracle 11.1g  client error with TimesTen

    Dear all, I am not sure this is the correct forum to post. I suspect that I have problem with Oracle Client 11.1g for HP-UX 64 bit v11.31. I configured Cache Connect of TimesTen v7.0.5 to use with Oracle DB 11.1g. I have the error that is related to