LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-07-2006, 07:59 AM   #1
Mr.DeVillie
LQ Newbie
 
Registered: Feb 2006
Distribution: Fedora Core 3
Posts: 12

Rep: Reputation: 0
Mounted a filesystem as root.How does one give write-permission to a user?


Hello evbdy,

I'm new to linux.My fstab(for the device files hda1 and hda2 which i'm trying to mount) looks like this...


/dev/hda2 /home/abhishek/music auto defaults 0 0
/dev/hda1 /home/abhishek/miscellany ext2 rw,suid,dev,exec,auto,user,async.
0 0


I want to mount hda1 and hda2 to the mount points mentioned above automatically at boot time with write-permission enabled to the user 'abhishek'.....

For the above fstab, at boot time,mounting fails...
Any suggestions..?

Last edited by Mr.DeVillie; 02-07-2006 at 08:00 AM.
 
Old 02-07-2006, 11:41 AM   #2
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Rep: Reputation: 30
i'm not sure of the EXACT workings of this but i think it should auto-mount if you change the 0 0 to 1 1.


There are three ways to give that user permissions i think, some sloppy and some tidy

You could make them belong to that user using a "chown -R USER /DIRECTORY" command.

or... you could make a group for all of the files and directories and make that user a member of it.

or... ... you could set permissions so that everybody can access those files with "chmod -R 777 /DIRECTORY".


It's really up to you and the way you want your system to work. The last one is obviously not as secure as it will allow anyone to get at those files.
 
Old 02-08-2006, 06:38 AM   #3
Mr.DeVillie
LQ Newbie
 
Registered: Feb 2006
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
I tried chown but it says ...

changing ownership of /home/abhishek/...: operation not permitted

So it mounts to the directory but doesnt let me (as root) change the ownership ...
 
Old 02-08-2006, 06:41 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by darksmiley
i'm not sure of the EXACT workings of this but i think it should auto-mount if you change the 0 0 to 1 1.
Those last two columns have nothing to do with auto mounting, see this for some info.
 
Old 02-08-2006, 08:20 AM   #5
Mr.DeVillie
LQ Newbie
 
Registered: Feb 2006
Distribution: Fedora Core 3
Posts: 12

Original Poster
Rep: Reputation: 0
I have read man pages for fstab and mount but am still facing probs...

My fstab for the concerned files...

/dev/hda2 /home/abhishek/music auto rw,auto,user,async,exec 0 0
/dev/hda1 / home/abhishek/miscellany e xt3 rw,auto,user,async,exec 0 0

wrote the above fstab after reding the posts but to no avail

2 probs:
1. At boot time it says this-> Mounting other filesystem: wrong fs_type,bad option,bad superblock for /dev/hda1 ...[FAILED]

2. Still no write-permission to a user (i login as 'abhishek') despite the option 'user' in the 4th field of fstab (for both the files)


Plea: Kindly help...
 
  


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 give ordinary users write permission to fat32 LeftyAce Debian 3 01-15-2006 04:03 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-24-2005 12:03 AM
How to give non-root users access to mounted partitions? black hole sun Linux - Software 5 10-28-2004 06:52 PM
mounted but no write permission varunk123456 Red Hat 1 03-31-2004 03:54 PM
How to give user permission to suspend with apm Bagleemo Linux - Laptop and Netbook 2 12-27-2003 02:10 PM


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