LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permissions problem (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-problem-65153/)

TheShemeta 06-12-2003 06:34 AM

Permissions problem
 
Hi guys,

i have bg problems with my permissions. as root i can't access the cd-rom & as a user i can't access my windows hard drives. it sucks, because i evrytime i want to watch a movie i need to log in as user & when i want to play my .mp3 i have to sign in as root. it is soo annoying. i tried the chmod,chgrp commands, but it didn't help.
so i need your help. i hope you have any ideas how i can fix thet!
thank you so much!

TheShemeta

chr 06-12-2003 06:50 AM

U cannot use chmod and chgrp commands on FAT32, NTFS and CD-ROM file systems.

To access windows harddrive and CDROM try options like 'user' or 'uid' in the man page of fstab or mount.

acid_kewpie 06-12-2003 06:58 AM

you need to set umask=000 for that entry in fstab (it will probably just say "defaults" there at the moment) or on the mount command line.

TheShemeta 06-12-2003 07:24 AM

Thanks for your information, now i know that i should stop with the chmod & chgrp.would you give me some more information & some steps how to do it. i am a newbie! :-( what are these commands "user" and "uid" & what are the fstab & mount?
thanks for your help! :-) that's cool there are people like you to help the newbies like me!

chr 06-12-2003 08:07 AM

mount is a command for mounting file systems.
/etc/fstab is a configuration file which is used by the mount command.
"user" and "uid" are not commands. They are options in the file /etc/fstab.

TheShemeta 06-12-2003 08:27 AM

so how would all this look like , so i can fix my problems? any idea? i have win_c & win_d drives which i can't access as an user. also i didn't see the umask=000. what is this?

TheShemeta 06-12-2003 01:34 PM

if this might help here is my fstab file:

/dev/hda3 / ext2 noatime 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,rw,--,iocharset=iso8859-1,codepage=850 0 0
/dev/hda2 /mnt/win_c vfat iocharset=iso8859-1,codepage=850 0 0
/dev/hda5 /mnt/win_d ntfs iocharset=iso8859-1,rw 0 0
none /proc proc defaults 0 0
/dev/hda4 swap swap defaults 0 0

i hope someone can help me! :-)

linux_guy2003 06-12-2003 02:54 PM

why don't u c this fstab file and make the necessary changes

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/hda1 /mnt/windows vfat defaults 0 0
/dev/hda7 /mnt/windows2 vfat defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


just make the necessary changes in ur cdrom and hda 2 n 5 as in my hda 1 n 7
it should work

TheShemeta 06-12-2003 06:42 PM

thanks for the help

i changed what i had to change , but no luck! :-( what should i do?
then i tried the ........ users,umask=000 0 0 , but not difference. well at least now i can access my FAT32 partition, but there are no files on it. i still can't enter into the NTFS partition.
also if this will help, i can enter the FAT32 partition & browse there through the comman line. so i really don't know what the problem is!

:( :( :( :( :( :( :(

fsbooks 06-12-2003 07:37 PM

Why don't you post what you have for the contents of your fstab. Also perhaps the listing that results when you type "ls -ld /dev/cdrom /dev/dvd /mnt/windows". Note, you may have to change the arguments to the actual cdrom and/or dvd device names, and the mount location of your windows drive(s). Then it will be easier for people who are used to seeing such things to see if they are consistent or not.

Also the output of "mount".

Did you unmount and remount the devices (cdrom/hardrive) after making the changes in /etc/fstab? This file is only operational during the mount operation.

TheShemeta 06-12-2003 07:50 PM

thanks for the help! now everything works fine. what i did is change the fstab file for the hard drives to users,umask=000 & then i restarted my comp. it works! :) :)

thank you again for your help!


All times are GMT -5. The time now is 07:31 PM.