LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user account issues with permissions and access to dialog (https://www.linuxquestions.org/questions/linux-newbie-8/user-account-issues-with-permissions-and-access-to-dialog-4175422019/)

lleb 08-14-2012 08:29 AM

user account issues with permissions and access to dialog
 
Hello, I have 3 users on a:
Code:

[root@rx30_02 rx30]# cat /etc/issue
CentOS-5.4 x64 (ks-3.03)
Kernel \r on an \m
Not Fedora

box. Users rx30 and root do not have access to running any script that uses dialog. They get to that point in the script and DIE. just hang nothing happens.

yet a 3rd user siani has no issues running the exact some scripts with dialog in the.

Code:

root@rx30_02 ~]# cat /etc/passwd
rx30:x:500:505::/usr/rx30:/bin/bash
sinai:x:502:502::/usr/rx30sinai:/bin/bash
root:x:0:0:root:/root:/bin/bash
operator:x:11:0:operator:/root:/sbin/nologin

[root@rx30_02 ~]# id rx30
uid=500(rx30) gid=505(group) groups=505(group)
[root@rx30_02 ~]# id sinai
uid=502(sinai) gid=502(sinai) groups=502(sinai)
[root@rx30_02 ~]# ./usr/rx30/nftp
[root@rx30_02 rx30]# id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

Now on an other system with 3 users who all have access to scripts with dialog in them this is their id:

Code:

[root@rx30 ~]# cat /etc/passwd | grep rx30
rx30:x:502:505:Rx30 Pharmacy System:/usr/rx30:/bin/bash
rx37:x:503:505:Rx30 Ver 3.7.0:/usr/rx30_37:/bin/bash
[root@rx30 ~]# id rx30
uid=502(rx30) gid=505(group) groups=505(group),6(disk),7(lp),14(uucp)
[root@rx30 ~]# id rx37
uid=503(rx37) gid=505(group) groups=505(group)
[root@rx30 ~]# id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
[root@rx30 ~]# cat /etc/passwd | grep root
root:x:0:0:root:/root:/bin/bash
operator:x:11:0:operator:/root:/sbin/nologin

Yes dialog is installed and i just updated it to the most current, still no change in accessing dialog scripts:

Code:

Running Transaction
  Installing    : dialog                                                                                                                                                      1/1

Installed:
  dialog.x86_64 0:1.0.20051107-1.2.2

Complete!

Not sure what more info I can provide you, but please tell me what you need so I can help you help me. Many thanks.

malekmustaq 08-14-2012 12:46 PM

What do you want to happen and what not?

lleb 08-14-2012 01:11 PM

i would like for all 3 users, including root, to be able to run scripts that contain simple dialog. atm, only the sinai user can. the other two if you attempt to run the same script it just hangs.

here is an example:
Code:



DIALOG=${DIALOG=dialog}
+ DIALOG=dialog

${DIALOG}      --backtitle "NCFTP Choices" \
                --title "Main Menu" \
                --menu "Welcome to ncftp choices.  Please choose one of \
                the following options." 12 65 4 \
                "1" "temp1" \
                "2" "rxupdate" \
                "3" "Exit" 2>_mainmenuanswer
+ dialog --backtitle 'NCFTP Choices' --title 'Main Menu' --menu 'Welcome to ncftp choices.  Please choose one of                the following options.' 12 65 4 1 temp1 2 rxupdate 3 Exit

It just sits there doing nothing, never putting the dialog box on the screen. yet if i run that same script as the sinai user it works as expected with the dialog box popping up. have literally run this script on close to 3500 linux servers over the past year, this is only one with this issue.


All times are GMT -5. The time now is 02:13 PM.