LinuxQuestions.org
Visit Jeremy's Blog.
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, 03: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, 04:38 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,674
Blog Entries: 14

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
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, 06:14 PM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
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, 02: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


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
Permission denied for root user shujja Linux - Newbie 9 10-28-2014 09:32 PM
Root user denied permission to update/install software appin69 Fedora 4 07-08-2008 12:43 PM
permission denied as root user tuluks SUSE / openSUSE 6 12-18-2006 02:53 AM
Permission denied existing directory root/user BDHamp Linux - General 5 04-10-2006 10:41 AM
whatever a non-root user does, he gets 'permission denied'. boazg Linux - Software 2 08-05-2005 09:17 AM


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