views:

88

answers:

2

I have just formatted an external hard disk using this command:

$ sudo mkfs -t ext3 /dev/sdc1

However, once this is done, whenever I want to create a directory or file in this hard disk, it always ask for password (i.e. permission requirement).

Is there a way I can disable that?

Note that I can't format the partition with mkfs unless I use sudo.

Please advice.

+4  A: 

If you mount the partition at /media/foo, then try this:

sudo chmod 1777 /media/foo

It'll act like /tmp does at that point. So any user can create a folder / file in there, but you can only delete your own files.

sharth
+2  A: 

I would recommend you asking the same question at ServerFault. I think you'll get a better answer over there.

Pablo Santa Cruz
That would be a good idea for him to do if the link you gave wasn't to an (apparently) closed Beta.
jesup
It's not closed anymore. Anyone who types in alt.sysadmin.recovery can use Server Fault now, without needing 100 points on SO.
Chris Jester-Young
It's not really a closed beta anymore
1800 INFORMATION
What's the password?
neversaint
@foolishbrat: look two lines up (or in the SO blog).
lc