4 Replies Latest reply on Sep 3, 2019 4:33 PM by PRAKASH BHOJAPPA-Oracle

    While running the general account VI editor, the error occurs.

    PRAKASH BHOJAPPA-Oracle

      1) From which user are you running vi command
      [pjch1:/wmsystem]id
      uid=701(lsc) gid=700(wmp)
      -> lsc account

      2) which file you are trying to vi
      -> [pjch1:/wmsystem/table]vi chaos.tb
      " " the permission of the usage is rejected
      In addition, the issue is not from a certain file, but the editor of VI itself as it's not working.
      When typed the command of only VI, there was the following error message: "the access for the usage is rejected"

      3) please share path of the vi where you running.
      /wmsystem
      Additionally, in the account of the basic user, VI is not working in all ways.
      In other words, the editor of VI is not working at all.

        • 1. Re: While running the general account VI editor, the error occurs.
          Nik

          Hi.

            Please show result for command: which vi

           

          Do you have same result in case start:   /bin/vi

          Regards,

            Nik.

          • 2. Re: While running the general account VI editor, the error occurs.
            PRAKASH BHOJAPPA-Oracle

            # pjch1 vi nok

             

            [pjch1:/wmsystem]vi 

            "" »ç¿ë ±ÇÇÑÀÌ °ÅºÎµÊ 

             

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem]which vi 

            /bin/vi 

            [pjch1:/wmsystem]ls -l /usr/bin/vi 

            -r-xr-xr-x   5 root     bin       239828 2007³â  9¿ù 14ÀÏ /usr/bin/vi* 

            [pjch1:/wmsystem]ls -l /bin/vi 

            -r-xr-xr-x   5 root     bin       239828 2007³â  9¿ù 14ÀÏ /bin/vi* 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem]vim 

            vim: ¸í·É¾î°¡ ¾øÀ½ 

            [pjch1:/wmsystem]which vim 

            no vim in /wmsystem/altibase_client/bin /altibase/altibase_home/bin . /bin /usr/bin /sbin /usr/sbin /usr/lib /opt/SUNWspro/bin /usr/ucb /etc . /wmsystem/vbin /system/FTP /wmsystem/altibase_client/bin /usr/local/mysql/bin /usr/ccs/bin /usr/local/bin /wmsystem/platform/bin /opt/JSparm/bin /wmsystem/WM/bin /usr/local/ssl/bin /usr/openwin/bin /usr/openwin/bin/xview /wmsystem/ap/bin /wmsystem/asp/vbin /sw/oracle/client/bin 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem]echo $PATH 

            /wmsystem/altibase_client/bin:/altibase/altibase_home/bin:.:/bin:/usr/bin:/sbin:/usr/sbin:/usr/lib:/opt/SUNWspro/bin:/usr/ucb:/etc:.:/wmsystem/vbin:/system/FTP:/wmsystem/altibase_client/bin:/usr/local/mysql/bin:/usr/ccs/bin:/usr/local/bin:/wmsystem/platform/bin:/opt/JSparm/bin:/wmsystem/WM/bin:/usr/local/ssl/bin:/usr/openwin/bin:/usr/openwin/bin/xview:/wmsystem/ap/bin:/wmsystem/asp/vbin:/sw/oracle/client/bin 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem]/usr/bin/ldd /usr/bin/vi 

                    libmapmalloc.so.1 =>     /usr/lib/libmapmalloc.so.1 

                    libcurses.so.1 =>        /usr/lib/libcurses.so.1 

                    libgen.so.1 =>   /usr/lib/libgen.so.1 

                    libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1 

                    libc.so.1 =>     /usr/lib/libc.so.1 

                    libm.so.2 =>     /usr/lib/libm.so.2 

                    /platform/SUNW,T5440/lib/libc_psr.so.1 

            [pjch1:/wmsystem] 

            [pjch1:/wmsystem] 

             

             

            ----------------------------------------------------------------------------------------------------------------------

            # pjch vi ok

             

             

             

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]vi 

             

            :q! 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]which vi 

            /bin/vi 

            [pjch2:/wmsystem]ls -l /usr/bin/vi 

            -r-xr-xr-x   5 root     bin       239828 2007³â  9¿ù 14ÀÏ /usr/bin/vi* 

            [pjch2:/wmsystem]ls -l /bin/vi 

            -r-xr-xr-x   5 root     bin       239828 2007³â  9¿ù 14ÀÏ /bin/vi* 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]vim 

            vim: ¸í·É¾î°¡ ¾øÀ½ 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]which vim 

            no vim in /wmsystem/altibase_client/bin /altibase/altibase_home/bin . /bin /usr/bin /sbin /usr/sbin /usr/lib /opt/SUNWspro/bin /usr/ucb /etc . /wmsystem/vbin /system/FTP /wmsystem/altibase_client/bin /usr/local/mysql/bin /usr/ccs/bin /usr/local/bin /wmsystem/platform/bin /opt/JSparm/bin /wmsystem/WM/bin /usr/local/ssl/bin /usr/openwin/bin /usr/openwin/bin/xview /wmsystem/ap/bin /wmsystem/asp/vbin /sw/oracle/client/bin 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]echo $PATH 

            /wmsystem/altibase_client/bin:/altibase/altibase_home/bin:.:/bin:/usr/bin:/sbin:/usr/sbin:/usr/lib:/opt/SUNWspro/bin:/usr/ucb:/etc:.:/wmsystem/vbin:/system/FTP:/wmsystem/altibase_client/bin:/usr/local/mysql/bin:/usr/ccs/bin:/usr/local/bin:/wmsystem/platform/bin:/opt/JSparm/bin:/wmsystem/WM/bin:/usr/local/ssl/bin:/usr/openwin/bin:/usr/openwin/bin/xview:/wmsystem/ap/bin:/wmsystem/asp/vbin:/sw/oracle/client/bin 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]/usr/bin/ldd/ /usr/bin/vi 

            /usr/bin/ldd/: µð·ºÅ丮°¡ ¾Æ´Ô 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem]/usr/bin/ldd /usr/bin/vi 

                    libmapmalloc.so.1 =>     /usr/lib/libmapmalloc.so.1 

                    libcurses.so.1 =>        /usr/lib/libcurses.so.1 

                    libgen.so.1 =>   /usr/lib/libgen.so.1 

                    libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1 

                    libc.so.1 =>     /usr/lib/libc.so.1 

                    libm.so.2 =>     /usr/lib/libm.so.2 

                    /platform/SUNW,T5440/lib/libc_psr.so.1 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            [pjch2:/wmsystem] 

            • 3. Re: While running the general account VI editor, the error occurs.
              Nik

              Hi.

              Is it correct that user pjch2 can run vi  and user pjch1 can not ?

               

              It's not standart system behavior and can be many reason why it's happens.

              As initial step you can check:

              1.  Environment for both users. ( env )

              2. What shell used for both users

              3. ls -lad /tmp

              4.  RBAC settings

                     content of files:

                 /etc/user_attr

                 /etc/profiles

               

              Regards,

                Nik.