permission denied on new partition to non-root user
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.