LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permission denied on new partition to non-root user (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-on-new-partition-to-non-root-user-872447/)

mushtaq 04-01-2011 02:59 PM

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.

MensaWater 04-01-2011 03:38 PM

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.

jv2112 04-01-2011 05:14 PM

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/

mushtaq 04-11-2011 01:38 PM

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.


All times are GMT -5. The time now is 12:55 AM.