LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Denied Permissions (https://www.linuxquestions.org/questions/slackware-14/denied-permissions-225451/)

Jeebizz 09-01-2004 07:49 PM

Denied Permissions
 
I've looked everywhere, but I'm still confused, so I will ask here. I am trying to access my NTFS-D file as a non root user, but I get permission denied, and I don't know exactly how to set it up for non users to read that file.

Also, I'm tired of runninng XMMS as root all the time, because I get permission error when I try to use the ALSA driver instead of OSS , how do I fix these two problems?

bobwall 09-01-2004 08:08 PM

Try doing a google search to see what mount options there are for /etc/fstab for ntfs volumes. I think you need a specific umask in the mount options string.

As for the ALSA problem, try doing "chmod a+rw /dev/adsp* /dev/amidi* /dev/amixer* /dev/snd/*"
This is evil so, if things work, then isolate which devices it affected at set the permissions for the rest back to what they were.

blk96gt 09-01-2004 08:35 PM

To access your drive as a non-root user, try making the entry in /etc/fstab look something like this:
Code:

/dev/hda1    /mnt/NTFS-D  NTFS noauto,user,ro,umask=0222 0 0
Change hda1 to the appropriate drive letter and partition number of the drive you're trying to access.

Jeebizz 09-05-2004 02:33 PM

I added the following to fstab, which now allows me to open the NTFS partitions, but no files are showing up!! what now? Here is what I have in fstab

/dev/hdb1 / ext3 defaults 1 1

/dev/hda1 /mnt/NTFS-D NTFS noauto,user,ro,umask=0222 0 0
/dev/hdb2 /mnt/NTFS-D NTFS noauto,user,ro,umask=0222 0 0

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Cedrik 09-05-2004 03:08 PM

I would be better if you make a choice between /dev/hda1 and /dev/hdb2 for the mount point NTFS-D, or create another mount point for /dev/hdb2 in /mnt

Then to see the files, mount the partition :

mount /mnt/NTFS-D

(you may have to specify the -t NTFS or not to mount, I don't know I have no NTFS)


All times are GMT -5. The time now is 12:43 PM.