LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2011, 02:59 PM   #1
mushtaq
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Rep: Reputation: 0
permission denied on new partition to non-root user


Hi ,

i have created a new fixed disk partition via file system via fdisk / and formatted via mke2fs -j all works fine with root user able to write but non-root user gets permission denied when write is requested on that partition.

OS : RHEL 5

any help please


thanks in advance.
 
Old 04-01-2011, 03:38 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Users shouldn't write to the partition itself. The partition should be "mount"ed on a mount point directory and the users should be writing to that directory after the mount. You would typically first have to have made the directory with the mkdir command.

e.g.
mkdir /myshinynewfs
mount /dev/sda1 /myshinynewfs

I don't see where you say anything about having mounted the filesystem. You don't even say which partition of which disk you created.
 
1 members found this post helpful.
Old 04-01-2011, 05:14 PM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
2 Cents ->


Set Permissions so all can use ->

chmod [OPTION]... OCTAL-MODE FILE..

--- chmod -R 755 /mount/point

or

Set Owner to the primary user

chown [OPTION]... [OWNER][:[GROUP]] FILE...

---- chown -R joe:sales /dev/sda/
 
1 members found this post helpful.
Old 04-11-2011, 01:38 PM   #4
mushtaq
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

Thanks guys i fixed by changing the permission on the folder, i was making a mistake trying on device worked have a good day.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied for root user shujja Linux - Newbie 9 10-28-2014 08:32 PM
Root user denied permission to update/install software appin69 Fedora 4 07-08-2008 11:43 AM
permission denied as root user tuluks SUSE / openSUSE 6 12-18-2006 01:53 AM
Permission denied existing directory root/user BDHamp Linux - General 5 04-10-2006 09:41 AM
whatever a non-root user does, he gets 'permission denied'. boazg Linux - Software 2 08-05-2005 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration