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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-22-2003, 08:56 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Location: Melb
Distribution: Knoppix
Posts: 4
Rep:
|
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
|
|
|
09-22-2003, 09:29 AM
|
#2
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
What filesystem is it and what command are you currently using to mount it with?
|
|
|
09-22-2003, 10:04 AM
|
#3
|
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:
|
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.
|
|
|
09-22-2003, 05:12 PM
|
#4
|
LQ Newbie
Registered: Sep 2003
Location: Melb
Distribution: Knoppix
Posts: 4
Original Poster
Rep:
|
Ok thanks i see my prob
this was how i mounted it,
/dev/sda1 /mnt/usbdrive
no 777
|
|
|
09-22-2003, 07:49 PM
|
#5
|
LQ Newbie
Registered: Sep 2003
Location: Canada
Posts: 19
Rep:
|
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
|
|
|
09-22-2003, 08:08 PM
|
#6
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
You could try this:
/dev/hda1 /mnt/windows ntfs auto,umask=0222,iocharset=iso8859-1,ro 0 0
|
|
|
09-23-2003, 12:07 AM
|
#7
|
LQ Newbie
Registered: Sep 2003
Location: Canada
Posts: 19
Rep:
|
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
|
|
|
09-23-2003, 02:18 AM
|
#8
|
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:
|
Maybe the kernel doesn't support ntfs?
|
|
|
09-23-2003, 10:09 AM
|
#9
|
LQ Newbie
Registered: Sep 2003
Location: Canada
Posts: 19
Rep:
|
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
|
|
|
09-23-2003, 12:17 PM
|
#10
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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
|
|
|
09-23-2003, 01:27 PM
|
#11
|
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571
Rep:
|
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.
|
|
|
09-23-2003, 02:01 PM
|
#12
|
LQ Newbie
Registered: Sep 2003
Location: Canada
Posts: 19
Rep:
|
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.
|
|
|
09-23-2003, 05:54 PM
|
#13
|
Member
Registered: Sep 2003
Location: Sydney
Distribution: Debian
Posts: 70
Rep:
|
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 09:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|