LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Complete Linux Newbie Permission's (https://www.linuxquestions.org/questions/linux-newbie-8/complete-linux-newbie-permission%27s-95484/)

Jaz808 09-22-2003 08:56 AM

Complete Linux Newbie Permission's
 
Its only my 2nd day using Knoppix 3.2
I managed to mount my Usb Pendrive
But it wont let my write to it, only read
I know i got to set Permissions, im logged on as Root User
Right Click then Propities wont let me save changes, So i guess i must open Shell, but from there i know nothing
Any help much appreciated

Skyline 09-22-2003 09:29 AM

What filesystem is it and what command are you currently using to mount it with?

chii-chan 09-22-2003 10:04 AM

Maybe you'd like to take a look at my /etc/fstab:

#################

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/hdb3 swap swap defaults 0 0
/dev/hda5 /windos/myvideos vfat defaults,umask=0000 0 0
/dev/hda6 /windos/mymusic vfat defaults,umask=0000 0 0
/dev/hda7 /windos/myworks vfat defaults,umask=0000 0 0
/dev/hdb5 /windos/mypics vfat defaults,umask=0000 0 0
/dev/hdb6 /windos/mydocs vfat defaults,umask=0000 0 0
/dev/sda1 /mnt/usb1 auto users,noauto,umask=0000 0 0
/dev/sdb1 /mnt/usb2 auto users,noauto,umask=0000 0 0
/dev/sda /mnt/usb3 auto users,noauto,umask=0000 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0

#########################


The most important thing here is the umask=0000 thing. It lets normal user write files on the usb pendrive. Another thing is to set chmod 777 /mnt/usb.

:rolleyes: :D

Jaz808 09-22-2003 05:12 PM

Ok thanks i see my prob
this was how i mounted it,
/dev/sda1 /mnt/usbdrive
no 777

noorania 09-22-2003 07:49 PM

Quote:

Originally posted by Jaz808
Ok thanks i see my prob
this was how i mounted it,
/dev/sda1 /mnt/usbdrive
no 777

Hey.

Like many here, I'm a noob. I have both windows and linux installed. I am using Mandrake 9.1.

My problem is that when I previously installed Mandrake along with Windows, I could read and execute the files on my windows through Mandrake (such as playing my mp3s). However, after a fresh install, I can't even view the files on my Windows except when I am in superuser mode. I have tried your mounting technique, but to no avail. Below is my /etc/fstab file:

/dev/hda5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/windows ntfs iocharset=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0

Please help. Thank you in advance.

-Reef

Skyline 09-22-2003 08:08 PM

You could try this:

/dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8859-1,ro 0 0

noorania 09-23-2003 12:07 AM

Quote:

Originally posted by Skyline
You could try this:

/dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8859-1,ro 0 0


Thank you for your reply. However, I get the following reponse for that particular command:

[root@localhost mnt]# /dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8 859-1,ro 0 0
bash: /dev/hda1: Permission denied

chii-chan 09-23-2003 02:18 AM

Maybe the kernel doesn't support ntfs?

noorania 09-23-2003 10:09 AM

Quote:

Originally posted by chii-chan
Maybe the kernel doesn't support ntfs?

Hey.

The kernel does support it. How then can I see the files in su mode? But thank you for your input.

-Reef

Skyline 09-23-2003 12:17 PM

Quote:

Thank you for your reply. However, I get the following reponse for that particular command:

[root@localhost mnt]# /dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8 859-1,ro 0 0
bash: /dev/hda1: Permission denied
The idea was to replace your current /dev/hda1 line in /etc/fstab with this one - you don't issue this on the command line.

Try putting this line in your fstab file in place of the current /dev/hda1 line

/dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8 859-1,ro 0 0

itsjustme 09-23-2003 01:27 PM

Uh.. umask=0000 and chmod 777 sounds like bad security to me.

But then, USB in linux is not something I've much dealt with yet.

noorania 09-23-2003 02:01 PM

Quote:

Originally posted by Skyline
The idea was to replace your current /dev/hda1 line in /etc/fstab with this one - you don't issue this on the command line.

Try putting this line in your fstab file in place of the current /dev/hda1 line

/dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8 859-1,ro 0 0

I appreciate your time and patience with a noob. We still don't have lift off. I'll keep on trying new things and see if I can get it to work.

Thank you all for helping.

-Reef.

nmoog 09-23-2003 05:54 PM

Howdy,

Im a newbie myself so maybe this is useless to you, but I just got my ntfs partition going (actually, I got it going, backed it up then formatted it to ext3! So long windows!)

anyhoo, have you tried adding "user" to the fstab line?
user,auto,umask=0222,iocharset=iso8 859-1,ro 0 0

I dont know what umask is - sorry if that means "user"!


All times are GMT -5. The time now is 10:37 AM.