LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2012, 09:29 AM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
Old 08-14-2012, 01:46 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
What do you want to happen and what not?
 
Old 08-14-2012, 02:11 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tools for user account creation/permissions bajones Linux - Newbie 1 12-31-2008 08:43 PM
User Account to Access Another Account benfaust Linux - General 2 06-28-2006 01:26 PM
User account migration and permissions psychobyte Linux - Networking 4 05-27-2006 12:23 AM
My user account has no write permissions guitarfella Slackware 2 12-15-2004 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration