LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2004, 10:57 AM   #1
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Rep: Reputation: 30
directory permissions


hi

i have a partition mounted in the directory /mnt/top as shown by the following line in the fstab file

Code:

/dev/hda3            /mnt/top            ext3       defaults              1 2

By default,no user is able to write anything into it.
I want to give a particular user both write and delete permissions to all stuff in this directory.
How should i do that. Should i change this line in the fstab file or add an entry in the sudo file?

plz give solutions in both ways

PS:i want to give such an access only to one user only....
 
Old 09-16-2004, 11:18 AM   #2
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Rep: Reputation: 30
I could be wrong but i belive you can just change the permissions of the directory it's mounted to, with chmod and such.
 
Old 09-16-2004, 12:58 PM   #3
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
no,sorry rcottere,,that doesnt seem to work
 
Old 09-16-2004, 07:14 PM   #4
Buto
Member
 
Registered: Sep 2004
Location: So Cal
Distribution: Slackware 12
Posts: 60

Rep: Reputation: 16
Did you make sure they are the user is the owner of the 'top' directory and give the user full permissions to it?
 
Old 09-16-2004, 07:56 PM   #5
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Try putting this in the fstab file:

/dev/hda3 /mnt/top ext3 defaults,uid=username 1 2
 
Old 09-17-2004, 07:28 AM   #6
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by JayCnrs
Try putting this in the fstab file:

/dev/hda3 /mnt/top ext3 defaults,uid=username 1 2
nopes,it didnt work,i even tried just 'uid=username' excluding the defaults, but that didnt make any difference
 
Old 09-21-2004, 10:38 PM   #7
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
For username you put this as your linux user you login, for eg. I would put uid=jason

You could also add a umask, that is :
Code:
/dev/hda3       /mnt/top      umask=0077,uid="linux username"   1  2
Let us know how it goes.

HTH
 
Old 09-21-2004, 10:42 PM   #8
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Forgot to mention the above umask will only give the user r/w permissions, nobody else other than root and the uid="linux username" will be able to enter the directory and make changes. If you want other people to be able to view but not able to write you would use:
umask=0022

Last edited by JayCnrs; 09-21-2004 at 10:43 PM.
 
Old 09-24-2004, 10:00 AM   #9
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by JayCnrs
For username you put this as your linux user you login, for eg. I would put uid=jason

You could also add a umask, that is :
Code:
/dev/hda3       /mnt/top      umask=0077,uid="linux username"   1  2
Let us know how it goes.

HTH
yeah,i kept this,but then the hard disk partition itself was not mounted at the startup
 
Old 09-25-2004, 08:13 PM   #10
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
hey guys
chown did the trick
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New directory permissions Paulsuk Linux - General 3 05-18-2005 06:36 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
directory permissions odious1 Linux - Networking 3 07-15-2003 02:31 PM
directory permissions breadbin Linux - General 3 05-28-2003 05:42 PM
directory permissions knueven7 Linux - Software 1 04-14-2003 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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