LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Directory and file permissions (https://www.linuxquestions.org/questions/linux-security-4/directory-and-file-permissions-329/)

ryan 12-01-2000 05:00 AM

Is it possible to configure directory/file permissions so only certain users can see them. I have a dual boot system and notice that my Windows 98 partion is mounted allowing me access files on that partion. What I want to do is set security so only I can access this.
Can I do this with a workstation install?

CragStar 12-03-2000 04:28 PM

I know of a way to set the permissions through root user, but the ability to block files and directories is dependant on the person who created the file(s), so you are stuck if you are not the root user. Anyway, you set the permissions of any file (logged in as root user) by using the command:
chmod [options] (file)

where the options need to be looked up in the manual page because I cant remember them all, and file is obviously the name of the file you want restricted.

I assume that you know where the folder Win98 is mounted to?

If so all you need to do is set the permission in the folder it is mounted to. For a better explaination (cough) of this here is the link:
http://www.linuxdoc.org/HOWTO/Securi...O-5.html#ss5.2

[Edited by CragStar on 12-12-2000 at 08:42 AM]

ssadams 12-06-2000 12:46 PM

if your windows partition is mounted under /mnt/windows
you could try chmod 700 /mnt/windows.You can also try and edit your /etc/fstab and see if the "user" or "default" parameters are being used for your windows partition.If so change it.
eg: /dev/hda1 /mnt/windows vfat user,auto,exec 0 0
remove the "user".


All times are GMT -5. The time now is 11:28 AM.