LinuxQuestions.org
Help answer threads with 0 replies.
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 06-17-2005, 04:48 PM   #1
Apogeal1
LQ Newbie
 
Registered: Jun 2005
Distribution: Xandros 3.0
Posts: 2

Rep: Reputation: 0
Setting permission, file access.


At the suggestion of a family member, I am trying Linux, Xandros style. I have installed it on it's own 10G partition with Windows XP on the primary. The problem is, I won't be the only person using the computer and I have files on the C: drive that I want to restrict access to. Windows can't read the Linux partition, but Linux can read the Windows partition and all its files.

The problem is that I am unable to set permissions as the Admin (root) in Xandros file manager to restrict access to those C: files. Using the file manager, I am not able to set them to un-share, the settings of parameters as to what limits there are, who own it - root, group, etc., passwords, anonymous users, have no effect. Both root and regular use in Linux can see any C:/ file and access and change its contents.

Is that because Linux is not on the primary partition, installed first, installed alone? Of course, I'm asking here because no one has responded to my question in the Distribution forums. I guess it must be a really dumb question, but I hope someone will at least tell me that.

Also, I've gone throught the installation process again thinking I must have missed something in setup regarding permissions, but I don't see anything I could do differently.

Thanks
 
Old 06-17-2005, 05:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'm not sure how Xandros handles its mount-options,
whether they're being dynamically created on boot
or not ...

But to fix the problem you'd need to change the
/etc/fstab
, more specifically you'll have to edit the line referring
to the windows partition, and make a umask of e.g.
077 and make the UID of the mount 0.


Cheers,
Tink
 
Old 06-19-2005, 04:43 PM   #3
rkettle
Member
 
Registered: Jun 2005
Posts: 204

Rep: Reputation: 30
not a dumb question at all..

you cannot set perms on an XP partition from linux... end of story.

The only way you can do it is if the Linux box is controlling the logons and it sounds like a home box to me.

The perms hold and you cannot change them via Linux... either use linux to control, or accept it.

Regards
Richard
 
Old 06-19-2005, 09:15 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Because Windows and Linux don't have the same file attributes, the permissions idea does not translate identically.
To be honest, the easy way is to login to Linux as root, cd /etc, make a copy of the fstab file eg cp fstab fstab.orig, then edit the fstab file and remove the line(s) that mount the Windows partion(s).
Then either use umount (ie dismount cmd) to unmount the Windows partition, or reboot.
The Windows partition will not be mounted.
You can always (temporarily) mount it manually as root user if you want to.
 
Old 06-20-2005, 11:46 AM   #5
Apogeal1
LQ Newbie
 
Registered: Jun 2005
Distribution: Xandros 3.0
Posts: 2

Original Poster
Rep: Reputation: 0
My thanks to Chris and to all who replied. I understand what I have to do to remove the Windows partitions. How will take some time.

Thanks
 
Old 06-20-2005, 08:17 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Actually, if you don't want to have to use the mount/umount cmds, there is another way.
You'll need 3 copies of the /etc/fstab file.

1. /etc/fstab - a copy of one of the following
2. /etc/fstab.xp - includes windows drive
3. /etc/fstab.none - does not include windows drive

/etc/fstab is the active one that Linux will look at. Decide whether you want XP drive avail or not, overwrite /etc/fstab with the relevant file (ie 2 or 3 above), using cp cmd, then try
mount -a
which will attempt to mount any drives in /etc/fstab not already mounted.
Try
cat /etc/mtab
to see if it's mounted.
Alternately, reboot to mount drives.
Obviously this has to be done as root user.

Repeat above as/when reqd.
 
  


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
DISCUSSION: Setting File and Directory Permission in Unix/Linux munawer_hassan LinuxAnswers Discussion 1 03-23-2010 11:40 AM
After file oops ? Forbidden You don't have permission to access / on this server. leongoogs Linux - Newbie 3 04-13-2004 09:27 AM
user specific file access permission synna Linux - Security 3 01-13-2004 11:53 PM
file/directory access permission question correro Linux - General 4 05-22-2003 07:48 PM
Setting File / Directory Permission, with sticky Primetime Linux - Newbie 3 01-06-2003 01:14 PM


All times are GMT -5. The time now is 07:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration