LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2003, 06:45 AM   #1
Mladek
LQ Newbie
 
Registered: Jul 2003
Posts: 14

Rep: Reputation: 0
Changing permissions


I have two disks on my Linux machine. One disk for the system and the other for data (that I use to carry data back and forth from home to the office).

When I try to access the data disk I get this message:

You do not have enough permissions to read devices:/devhdg1windowsC

If I try to change permisions, I get this mesage:

Could not change permissions for /windows/C

One of the two machines is a Windows 2000 machine and the disk is formated NTFS (if its formated FAT the Linus machine will not read it at all).

Does anyone have any suggestions.
 
Old 07-09-2003, 07:19 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
did you try accessing the disk as root?

i bet your fstab is set up to mount the second disk as
ntfs, and when you formatted as fat, the disk no longer
got mounted. you would have to edit /etc/fstab.
you really can't write to NTFS without messing it up.
 
Old 07-09-2003, 07:22 AM   #3
Mladek
LQ Newbie
 
Registered: Jul 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I'm not sure how I am accessing the disk.

Since I an new to Linux, these things are new to me.

Could you explain in a little more detail?
 
Old 07-09-2003, 07:28 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you have to be logged in as root to mount or write
to those other drives, unless you add "user" to the
/etc/fstab line for that drive.
 
Old 07-09-2003, 07:34 AM   #5
Mladek
LQ Newbie
 
Registered: Jul 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I know its a stupid question, but how do I log on as root. When logging in, I only get a users menu. The only time I'm asked for the root pasword is when I try to access Yast or some specific funtion.

Should I try to sep up another account?

In the Windows I have I have a separate user and Administrator account and I am offered the choice at logon, but the Suse logon does not give me this option.
 
Old 07-09-2003, 08:04 AM   #6
tjm
Member
 
Registered: Oct 2002
Posts: 55

Rep: Reputation: 15
When you mount the drive you can optionnally allow a given user ID access to the drive.

So, if you mount with command (example) mount -t ntfs -r /dev/hda2 /mnt/windows/C, then only root gets access.

If your 'normal' user is uid=500, then add '-o uid=500' to the mount command and then the normal user can access it.

So your command becomes 'mount -t ntfs -r -o uid=500 /dev/hda2 /mnt/windows/C

There is a way of doing this in the file /etc/mttab... but I am not sure how
 
Old 07-09-2003, 08:15 AM   #7
Mladek
LQ Newbie
 
Registered: Jul 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks. I ll try that.

BTW, do you know of any place where I can download a list of Linux commands along with an explanation of what each does?
 
Old 07-09-2003, 08:57 AM   #8
tjm
Member
 
Registered: Oct 2002
Posts: 55

Rep: Reputation: 15
If you are an unscrupulous person... like me.... then using any popular p2p program you can find Linux reference books in pdf format.

I think there is one called Linux Bible.

If you know the name of the command, but just want to learn more about its options... Linux comes with a built in manual.

To access the manual page for that command type 'man mount' and you will learn more than you ever wanted to know.
 
  


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
Changing Permissions jong357 Linux - General 5 01-25-2005 02:39 PM
Changing Many Permissions at Once food188 Linux - General 3 11-02-2003 08:17 AM
changing permissions... ashesh Linux - General 3 08-15-2003 11:32 PM
Changing Permissions linuxfond Linux - Newbie 11 07-01-2003 02:48 PM
Permissions Changing ew2003 Linux - Newbie 1 04-29-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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