LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2003, 08:56 AM   #1
Jaz808
LQ Newbie
 
Registered: Sep 2003
Location: Melb
Distribution: Knoppix
Posts: 4

Rep: Reputation: 0
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
 
Old 09-22-2003, 09:29 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
What filesystem is it and what command are you currently using to mount it with?
 
Old 09-22-2003, 10:04 AM   #3
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
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.

 
Old 09-22-2003, 05:12 PM   #4
Jaz808
LQ Newbie
 
Registered: Sep 2003
Location: Melb
Distribution: Knoppix
Posts: 4

Original Poster
Rep: Reputation: 0
Ok thanks i see my prob
this was how i mounted it,
/dev/sda1 /mnt/usbdrive
no 777
 
Old 09-22-2003, 07:49 PM   #5
noorania
LQ Newbie
 
Registered: Sep 2003
Location: Canada
Posts: 19

Rep: Reputation: 0
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
 
Old 09-22-2003, 08:08 PM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You could try this:

/dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8859-1,ro 0 0
 
Old 09-23-2003, 12:07 AM   #7
noorania
LQ Newbie
 
Registered: Sep 2003
Location: Canada
Posts: 19

Rep: Reputation: 0
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
 
Old 09-23-2003, 02:18 AM   #8
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Maybe the kernel doesn't support ntfs?
 
Old 09-23-2003, 10:09 AM   #9
noorania
LQ Newbie
 
Registered: Sep 2003
Location: Canada
Posts: 19

Rep: Reputation: 0
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
 
Old 09-23-2003, 12:17 PM   #10
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
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
 
Old 09-23-2003, 01:27 PM   #11
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
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.
 
Old 09-23-2003, 02:01 PM   #12
noorania
LQ Newbie
 
Registered: Sep 2003
Location: Canada
Posts: 19

Rep: Reputation: 0
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.
 
Old 09-23-2003, 05:54 PM   #13
nmoog
Member
 
Registered: Sep 2003
Location: Sydney
Distribution: Debian
Posts: 70

Rep: Reputation: 15
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"!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
COMPLETE Linux newbie looking for enlightenment cshank4 Linux - Newbie 22 08-30-2005 11:38 PM
Complete Newbie to Linux Archaic MEPIS 13 07-03-2005 02:42 PM
Complete Linux Newbie-wine stopkittiestop Linux - Games 6 12-20-2004 10:51 PM
From complete newbie to C++ programing in Linux Replicator 3.0 Programming 12 05-10-2004 02:23 PM
I'm a complete Linux newbie. help...please propellerhead! Linux - Newbie 4 08-08-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration