LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 06-05-2009, 12:35 PM   #1
varewoolf
LQ Newbie
 
Registered: Jun 2009
Posts: 23

Rep: Reputation: 15
permission settings for different users...


i have an issue to solve.. i am using mandriva linux 2009.. i have two user accounts sa User1 and User2... plus i have 2 windows partitions under /mnt. the issue is i have to set the user1 to access the /mnt but user2 should not have permission to access the /mnt..
how can i set this?? i need to do this on terminal preferably..

thanx in advance
 
Old 06-05-2009, 02:16 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
since you opened 3 tickets on this, I guess I'll try to help.

Since we're only talking about 2 users, you could just make /etc/fstab mount the partitions with user1 as the owner.

do:
Code:
cat /etc/passwd |grep [user1 name]
then ammend the options in /etc/fstab to include uid=[3rd value from line returned above]

remember that your /etc/fstab options are comma-delimited, and you're probably looking for a value like 1001 or 1002

man mount:
Quote:
Mount options for fat
(Note: fat is not a separate filesystem, but a common part of the msdos, umsdos and
vfat filesystems.)

blocksize=512 / blocksize=1024 / blocksize=2048
Set blocksize (default 512).

uid=value and gid=value
Set the owner and group of all files. (Default: the uid and gid of the current
process.)
...
Mount options for ntfs
iocharset=name
Character set to use when returning file names. Unlike VFAT, NTFS suppresses
names that contain unconvertible characters. Deprecated.

nls=name
New name for the option earlier called iocharset.

utf8 Use UTF-8 for converting file names.

uni_xlate=[0|1|2]
For 0 (or ‘no’ or ‘false’), do not use escape sequences for unknown Unicode
characters. For 1 (or ‘yes’ or ‘true’) or 2, use vfat-style 4-byte escape
sequences starting with ":". Here 2 give a little-endian encoding and 1 a
byteswapped bigendian encoding.

posix=[0|1]
If enabled (posix=1), the file system distinguishes between upper and lower
case. The 8.3 alias names are presented as hard links instead of being sup‐
pressed.

uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is given in octal.
By default, the files are owned by root and not readable by somebody else.
 
Old 06-05-2009, 02:55 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

varewoolf, don't make a habit of this. Continue here.

Last edited by win32sux; 06-05-2009 at 02:57 PM.
 
  


Closed Thread



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
permission settings issue....Help needed.... varewoolf Linux - Newbie 6 06-06-2009 12:15 PM
Permission Settings - Kernel 2.6.11.10 donk Slackware 11 05-23-2005 11:35 AM
Getting users permission phoenix99 Linux - Security 1 02-22-2005 05:36 PM
Need help with WuFTPd permission settings NotSavvy72 Linux - Newbie 2 06-16-2004 09:13 AM
Questions about Proftpd permission settings? gsmonk Linux - Networking 1 08-12-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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