LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2003, 10:13 AM   #1
LinuxBAH
Member
 
Registered: Jun 2003
Distribution: FreeBSD
Posts: 119

Rep: Reputation: 15
Chmod issues....


After messing around with help files and commands and after trying to cd to /mnt/win_d to access my windows partition via the command prompt and getting permission denied. I came to the conclusion that something is definately wrong. ls -l in the mount folder shows me that it gives the group and other users read access. So I su into root and do chmod 775 /dev/hda5/ where hda5 is the device for the windows partition I'm trying to access. After doing this and doing ls -l again in the /mnt folder I find that it didn't change these permissions. Hrm... am I doing something wrong? Am I forgetting to do something? Or perhaps these changes aren't immediate unless I perform anotehr command afterwards? Even so, why am I getting permission denied EVEN THOUGH all users should have read access, at least?!
 
Old 06-24-2003, 10:46 AM   #2
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Have you modified your fstab file in /etc?
 
Old 06-24-2003, 12:10 PM   #3
LinuxBAH
Member
 
Registered: Jun 2003
Distribution: FreeBSD
Posts: 119

Original Poster
Rep: Reputation: 15
I didn't know I would need to. Does fstab overwrite anything you do with chmod?!?
 
Old 06-24-2003, 01:19 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
No, fstab allows you to set the permissions on mounting. i.e., if you want users to be able to mount the CDROM drive, you have to specifically allow that in /etc/fstab.
man fstab
man mount
 
Old 06-24-2003, 06:54 PM   #5
LinuxBAH
Member
 
Registered: Jun 2003
Distribution: FreeBSD
Posts: 119

Original Poster
Rep: Reputation: 15
Yeah I did man fstab and man mount, while man fstab made sense and I sorta understand it now. man mount had too many senetnces that ran on and on and turned into paragraphed sized sentences and had comma's thrown about it. It would of made alot more sense if whoever wrote that had taken a breath and broke his thought down into sentences. So now I"m still sitting here not able to get my user to be able to use my windows partitions. Could someone give me an example of how an fstab entry allowing users to be able to access them looks? I'm using mandrake 9.1 if it makes a difference. I know sometimes different distros do different things.
 
Old 06-24-2003, 07:08 PM   #6
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
less /etc/fstab

and drop the results here. then we can see if it is set up correctly. doing a chmod the the file of /etc/fstab won't do anything for you.

cheers.
 
Old 06-25-2003, 10:26 AM   #7
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Here's how my entry looks:

/dev/hda1 /mnt/win98 vfat uid=500,gid=500,rw,auto 0 0
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD Issues Kenji Miyamoto Linux - General 3 12-31-2004 06:45 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
Chmod gibbylinks Linux - Newbie 1 10-23-2003 11:17 AM
what does chmod mean? tedist_god Linux - Software 1 10-05-2003 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:59 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