LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2006, 04:17 AM   #1
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Rep: Reputation: 15
Partition Acces Problem


I have two DOS partitions which are mounted at boot time /dos/c and /dos/d I can write to them as root, but I cannot write to them as any other user. I dont know why this happends, tryed chmoding and chowning in root in recursive mode, but it does not change anything. I still get a permission denied error.
 
Old 06-05-2006, 04:46 AM   #2
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Hi,

You need to mount the DOS partitions with the user parameters - here's how I mount my VFAT USB disk:
Code:
/dev/maxtor /mnt/maxtor vfat noauto,owner,users  0 0
Check out the noauto, owner, users parameters - that should do the trick so that when you mount the DOS partition, you're the owner.

-Y1
 
Old 06-05-2006, 06:23 AM   #3
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
Where should I include this line? inittab in the /etc folder? Beacause the kernel mounts them on default.
 
Old 06-05-2006, 06:29 AM   #4
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Hi,

Sorry - forgot to mention that
The correct file is /etc/fstab

(inittab is where you control the different runlevels, and is where you change default runlevel from 3 to 4 to get it to boot into X windows - fstab is where you define the filesystems and such)

-Y1
 
Old 06-05-2006, 09:29 AM   #5
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
I have done that, and now I mount them manualy, but it is the same. I can only mount them as root (otherwise the mount command does not work). And even as root, when I try to change ownership, it gives me an permision denied error. What should I do?
 
Old 06-05-2006, 09:48 AM   #6
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Hmm, you included all the owner,users parameters?

What is the permissions on the device ? (/dev/hdx)

-Y1
 
Old 06-05-2006, 11:12 AM   #7
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 905

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
For my local vfat partition I use the options
Code:
auto,rw,umask=000
If you want to be able to mount as a regular user, and not automatically at boot time
Code:
noauto,rw,user,umask=007
should work. Since dos partitions don't allow permissions, Linux gives every file the same permission at mount time, and they can't be changed later (except with a remount). check the man page for mount for more info.
 
Old 06-05-2006, 12:27 PM   #8
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
I want to mount it automatically at boot-time, but also write on it as a regular user, and have full privilages ...
 
Old 06-05-2006, 01:18 PM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
So, after nine posts, could you please post your /etc/fstab file so that we can see what you have instead of letting others repeat the solution over and over again?

Eric
 
Old 06-06-2006, 04:47 AM   #10
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Original Poster
Rep: Reputation: 15
Here is the contents of fstab file

Code:
/dev/hda3        swap             swap        defaults         0   0
/dev/hda2        /                ext3        defaults         1   1
/dev/hda1        /dos/c           vfat        defaults         1   0
/dev/hdb1        /dos/d           vfat        defaults         1   0
#/dev/hda1        /dos/c           vfat        noauto,owner,user         0   0
#/dev/hdb1        /dos/d           vfat        noauto,owner,user         0   0
/dev/cdrom       /mnt/cdrom       auto        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
none		/sys		sysfs		defaults	0   0
 
Old 06-06-2006, 04:53 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Mercurius
Code:
/dev/hda1        /dos/c           vfat        defaults         1   0
/dev/hdb1        /dos/d           vfat        defaults         1   0
So, why did you not try the advice given in this thread and changed the above to
Code:
/dev/hda1        /dos/c           vfat        rw,umask=000         1   0
/dev/hdb1        /dos/d           vfat        rw,umask=000         1   0
That should work.

Eric
 
  


Reply



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
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM
acces a mp3 player + NTFS file partition ? fatum Linux - General 4 09-30-2004 06:25 PM
Acces other pc acrors Red Hat 0 08-24-2004 09:56 PM
no acces with ssh kvtournh Linux - Networking 3 12-11-2003 08:29 AM
Only root can acces this partition!? benjalien Mandriva 3 10-30-2003 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration