On Sat, 20 Feb 1999, ^Mr^ wrote:
> i have redhat 5.2 installed , and i recently wanted to try play a audio
> cd that i have .. i tried with root and it played normally .. but when i
> used the account owner ... it said i had no permission to the cdrom or
> the cdrom wasn't compiled with the kernel ( which wasn't the case ) .
If you can do it as root, than CD support is in the kernel. Else,
if you want to see it with your own eyes check the output of dmesg. There
will be something like:
hda: <your first hard drive>
hdb: <your cd-rom, if it is slave on primary ide>
So it said something about there is no permission.
> so i did a chmod 4755 /dev/cdrom .. is that safe ? what does that 4 in
> the beginning mean ? is there a chmod 5755 ? what'll that mean ? is
> there any better way of doing it ?
First thing you need to do is to read the man page for chmod.
Than avoid using the sticky bit, and try to play with the permissions for
the others for /dev/hdb (if /dev/hdb points to your cd-rom drive). Now if
you don't use a CDR drive than I don't think that is a security hole -
keep in mind that mount is usually done by root.
> ps .. i did a chmod 4755 on all files that are need by pppd , so that i
> could connect to the internet with a non-root user .. is that ok ?
If you don't care too much about security than I guess you can say
it's Ok. Else, try to make a script that will do all you want to start
pppd (ip accounting, and others) and launch it as root, or (as I do for
mail) make a cron job that will launch it.
Raider
--
``Liberate tu-temet ex inferis''