Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
why are there so many world readable files?

why are there so many world readable files?

2004-02-19       - By Pete Nesbitt

 Back
Reply:     1     2     3     4  

On February 18, 2004 04:41 pm, Chris W. Parker wrote:
> hi.
>
> i was just wondering. why are there so many world readable files
> throughout the linux os? shouldn 't a directory like /etc not be readable
> by the world?
>
> the reason i ask is because i setup a cron job that backups up a
> database each night. i noticed that the backup file that was being
> created was 0 bytes so i did some investigation. turns out it 's because
> i changed the mysql root password, so i changed it in the file.
>
> but then i realized the file is world readable by default. of course i
> changed it to 750 (maybe it should be 700?) but i don 't see why so many
> files are world readable.
>
> someone enlighten me please.
>
>
> thanks,
> chris.


Hi Chris,
There are a lot of files in /etc and other areas that should be accessable by
regular users. The ones that matter are not readable.
For example, a script may check for valid user by greping the /etc/passwd
file, but the passwords are kept in /etc/shadow, which is only readable by
root.

In a case where you want to automate something you should try and use an
account with no login shell, and then use key based if possible, or at least
restrict the file to owner &/or group as required. Sounds like you have done
that already. Basicly, storing passwords for scripts or programs to use is
not a good idea if it can be avoided.

Yes there are lots of files that are world readable that don 't need to be. So
you could carefully remove that access, being careful not to break anything,
but again, the system files that need to be private are not world readable.
--
Pete Nesbitt, rhce


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list