LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-14-2001, 04:49 PM   #1
dominique
LQ Newbie
 
Registered: Sep 2001
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
Access Methods in Linux


I mounted my C:\ drive in RH Linux 7.1 as /c/ so that I could access it. (Linux is on my D:\). The problem is that only the root user has read & write access to it, all other users only have read access. How can I alter the permissions to give all users write access as well?

With root access I tried chmod a+rwx /c/ and chmod 777 /c/ (same thing) and they both say that the directory has been chmoded correctly (in conjunction with the -v option):

[root@localhost /]# chmod -v a+rwx c
mode of `c' changed to 0777 (rwxrwxrwx)


However neither a root ls -l lookup nor a user ls -l lookup shows the changes, both still think it's rwxr-xr-x.

Btw, I am both new to Linux Questions and a , so any help is greatly appreciated! Thank you!
 
Old 09-14-2001, 07:33 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
you need to set access rights ni the /etc/fstab file. chmod-ing a windows file system is useless, and FAT32 can't deal with it. my line says:

/dev/hda1 /windows vfat defaults,umask=000,quiet,user 0 0

this means:

vfat - windows file system
defaults - ahh just ignore it...
umask - the exact opposite of chmod levels. imples restrictions, not rights. therefore 000 = no restrictions.. i.e. chmod 777 equivalent.
quiet - suppresses file rights problems, inherent in vfat fs's
user - lets users control it's mounting and unmounting

should be all you need to know
 
Old 09-14-2001, 09:38 PM   #3
dominique
LQ Newbie
 
Registered: Sep 2001
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you for your swift reply.

I did what you suggested and now a new icon has showed up on my desktop: Disk 0.

However my user account still has no write access to /c, only read and execute.
 
Old 09-15-2001, 06:47 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You'll need to change the rights of the direstory it gets mounted ni, whilst it is unounted

unmount /c
chmod a+w /c
mount /c
 
Old 09-15-2001, 11:20 AM   #5
dominique
LQ Newbie
 
Registered: Sep 2001
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Thanx for the help, it works just fine now! Although I didn't have to unmount/mount, just chmod and it worked.

Again, thank you.
 
Old 09-15-2001, 01:17 PM   #6
hussam_nasir
LQ Newbie
 
Registered: Sep 2001
Posts: 2

Rep: Reputation: 0
accessing windows partition in Linux

Hello all,
Well i have installed RH Linux 7.1 on my PC . This was a partition less install and i am using a boot floppy to boot into linux. I wanted help regarding accessing my windows files in Linux. Every time i try to give the command

mount -t vfat /dev/hda1 /mnt/windows

it gives me an error saying that device might be already mounted or busy. I have not mounted the device. So whats happening???????

Help me out people Pleeeeeaaaaase!!!!

 
Old 09-15-2001, 02:05 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You sure it's not already mounted? check /etc/fstab for the automatic mounting on that partition. I can see how if that's the partition you're using, it might be a bit odd, should still act as normal tho
 
Old 09-15-2001, 02:36 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
To find out whats mounted you can simply type
Code:
mount
cheers

Jamie...
 
Old 09-16-2001, 09:15 AM   #9
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
I've try to edit fstab but after adding theline:
/dev/hda1 /windows vfat defaults,umask=000,quiet,user 0 0
I then reboot and it tells me that windows does not exist...
any idea what i am doing wrong?
thanks
 
Old 09-16-2001, 09:45 AM   #10
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
You have created a directory called /windows yeah?

cheers

Jamie...
 
Old 09-16-2001, 10:04 AM   #11
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
Hit me...
 
Old 09-16-2001, 10:32 AM   #12
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
Well, maybe there is no hope...
I can't even do that right.
here is what i do:
in /mnt i create this way:
mkdir windoz
chmod 777 windoz
and i edit fstab with a last line:
/dev/hda1 /windoz vfat defaults,umask=000,quiet,user 0 0
save and reboot
then it gave me a 'missing something in my fstab last stuff'
quite depress...
 
Old 09-16-2001, 10:45 AM   #13
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Quote:
Originally posted by c0c0deuz
in /mnt i create this way:
mkdir windoz
chmod 777 windoz
and i edit fstab with a last line:
/dev/hda1 /windoz vfat defaults,umask=000,quiet,user 0 0
Uhm... think about it!! You've created the windoz folder in /mnt!! So you're fstab line should be
Code:
/dev/hda1    /mnt/windoz    vfat    umask=000,quiet,user 0 0
cheers

Jamie...
 
Old 09-16-2001, 11:04 AM   #14
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
i got that Jamie and it works fine now but when i am booting it still give me that line'No final newline at the end of /etc/fstab' is it that screw up there too?
 
Old 09-16-2001, 11:07 AM   #15
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Right - sounds like you simply need to go to the last line of fstab and add a newline (i.e. press enter to start a new line) then save the file. I can't say I realised that everyline of fstab had to be newline terminated.

cheers

Jamie...
 
  


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
alternate methods of parallel port access bobbens Programming 9 10-25-2005 09:47 AM
linux benchmark methods for the kernel? Moloko Debian 3 05-04-2005 11:14 AM
java -- methods -- please help Laptop2250 Programming 2 12-13-2003 01:46 AM
Other install methods? Icon Mandriva 7 11-01-2003 05:14 AM
Boot methods Nasty Linux - Newbie 1 10-11-2003 05:29 PM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration