How to disable the password prompt when creating a file on a newly formatted hard drive

I just formatted my external hard drive with this command:

$ sudo mkfs -t ext3 /dev/sdc1

      

However, once that is done, whenever I want to create a directory or file on that hard drive, it always asks for a password (i.e. a permission request).

Is there a way to turn this off?

Please note that I cannot format the partition with mkfs unless I am using sudo.

Please advice.

-1


a source to share


2 answers


If you are mounting a partition in / media / foo try this:

sudo chmod 1777 /media/foo

      



In this case, it will act like / tmp. This way, anyone can create a folder / file there, but you can only delete your own files.

+4


a source


I would recommend that you ask the same question in ServerFault . I think you will get the best answer out there.



+2


a source







All Articles