Bug 25095 - need to check if user is root
Summary: need to check if user is root
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: netcfg (Show other bugs)
(Show other bugs)
Version: 7.1
Hardware: i386 Linux
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: David Lawrence
Whiteboard: Florence RC-2
Depends On:
TreeView+ depends on / blocked
Reported: 2001-01-27 21:43 UTC by Jeremy Katz
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-30 00:03:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jeremy Katz 2001-01-27 21:43:39 UTC
Need to check if user is root on running netcfg prior to trying to read
/etc/ppp/pap-secrets to avoid traceback

1113 katzj@rivendell:~/projects/redhat> netcfg
Red Hat Linux netcfg 2.31
Copyright (C) 1996, 1997, 1998, 1999, 2000 Red Hat, Inc.
Redistributable under the terms of the GNU General Public License
Traceback (innermost last):
  File "/usr/lib/rhs/netcfg/netcfg.py", line 1963, in ?
    win = WindowFrame(Toplevel())
  File "/usr/lib/rhs/netcfg/netcfg.py", line 1931, in __init__
    self.G = GV()
  File "/usr/lib/rhs/netcfg/netcfg.py", line 172, in __init__
    self.PAP = ConfPAP()
  File "/usr/lib/rhs/python/Conf.py", line 1683, in __init__
    Conf.__init__(self, '/etc/ppp/pap-secrets', '#', '\t ', '\t')
  File "/usr/lib/rhs/python/Conf.py", line 180, in __init__
  File "/usr/lib/rhs/python/Conf.py", line 1685, in read
  File "/usr/lib/rhs/python/Conf.py", line 260, in read
    self.file = open(self.filename, 'r', -1)
IOError: [Errno 13] Permission denied: '/etc/ppp/pap-secrets'

Comment 1 Glen Foster 2001-01-30 00:03:50 UTC
This defect is considered MUST-FIX for Florence Release-Candidate #2

Comment 2 Nalin Dahyabhai 2001-02-09 21:58:03 UTC
Should be resolved in netcfg-2.36-2 and later.  Please reopen if you find that
this is not the case.

Note You need to log in before you can comment on or make changes to this bug.