LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 02-13-2008, 05:30 PM   #1
arthur42dent
LQ Newbie
 
Registered: Nov 2007
Posts: 24

Rep: Reputation: 15
How do I change permissions for a folder on an NTFS filesystem?


By setting up folder permissions on Windows XP Pro I can make sure that only I have access to my folder that I keep on my slave IDE NTFS drive whether it is being accessed locally or via my wireless network with my ibook (OS X Panther). In essence it is impossible to access the folder with out logging in with my user name and pass word at some point. I dual boot into Linux (Ubuntu Gusty). When logged into Ubuntu any user (there are 3 not including root) can mount the NTFS slave drive and access any file or folder. also when the server is booted into Linux any one can access the folder via the ibook (because I am currently sharing that folder from Linux and Windows). I cannot change the permissions of the folder to allow only one user (me) to see or change the contents of this folder in Ubuntu. I believe I cannot do this because the Drive it is on is NTFS because I can edit permissions for folders on the Linux partition on the master drive. My question obviously is; How can I edit the folder permissions on an NTFS formated drive using Linux?

Thank you for any help
 
Old 02-13-2008, 05:50 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You determine the permissions on an NTFS partition in the mount command itself. If you want to allow anyone to be able to access the partition, you can use the "dmask" & "fmask" options to allow "others" access. Even if you do that, you can control who has access to the samba share in the smb.conf setup. You could also create a group and add users to the group who will be allowed access. This will also allow you to control access by users who have ssh access to the Linux computer.
 
Old 02-13-2008, 08:51 PM   #3
arthur42dent
LQ Newbie
 
Registered: Nov 2007
Posts: 24

Original Poster
Rep: Reputation: 15
how?

Thank you jschiwal for your quick reply. I am very computer literate but I am a linux newbie and the command line is new to me. I have edited the fstab so my slave drive (volume label 'Data') mounts automatically (at startup). Perhaps you or someone can elaborate on how I can use the "dmask" & "fmask" commads and how I can configure samba?
 
Old 02-15-2008, 08:14 PM   #4
arthur42dent
LQ Newbie
 
Registered: Nov 2007
Posts: 24

Original Poster
Rep: Reputation: 15
Please help

Hey guys please help.

I would very much like to have my slave ntfs drive automount but with unrestricted access to some folders and tight security on others. so that User A sees "Folder1" "Folder2" and "User A's Folder" while User B sees "Floder1" "Folder2" and "User B's Folder". I want some folders to deny both write AND READ options to other users. I would like these permissions to spill over to samba as well so that the user must enter their Linux username and password to gain read and write access to there folder remotely (whether by windows or Mac OS X from a laptop).

any detailed help for editing fstab, changing user or group settings, or configuring samba would be greatly appreciated.

am I asking the impossible? I'd like to know that too.

Thanks in advance.
 
  


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
how to change folder permissions in fc-6 chryslercirrus99 Fedora 3 06-07-2007 06:32 PM
can't change permissions for windows folder nikoz Linux - General 1 06-21-2006 08:19 AM
Mounting NTFS filesystem with permissions krymsunmortis Slackware 7 04-29-2004 04:37 PM
How to change permissions for Mounted Filesystem leroy27336 Linux - General 3 11-15-2003 03:08 AM
Change folder permissions eggoz Linux - Newbie 2 03-17-2003 01:35 AM


All times are GMT -5. The time now is 04:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration