Click to See Complete Forum and Search --> : Read/Write/Exec Access on a Harddrive


vwfanatic
02-25-2004, 09:12 AM
I've tried the ideas that I got on the Search "Permissions" but can get none of them to work.

I have this line in my FSTAB (this is the HDD that I want to access and write to and execute a file from if need be)

/dev/sda1 /scsi1 ext3 user,rw,exec 0 0

I've tried putting in umask=0 and umask=000 and gid=500, but can get none of it to work.

with the line I have above, I can at least see the drive on my desktop, and I can access it, but I cannot write to it. I keep getting "You do not have permission" messages.

I'm using Fedora Core 1 Yarrow if that helps.

Thanks.

Abraham

mdwatts
02-25-2004, 12:00 PM
Try umask=777 as that should give everyone write access.

Have you had a look through the mount manpage (man mount)? You may find other suggestions.

vwfanatic
02-25-2004, 07:00 PM
Here's a copy of my FSTAB. What did I do wrong?

I still cannot write to any of my drives.

Thanks!

Abraham

teeitup
02-25-2004, 08:06 PM
This is just my opinion and I'm sure many people will disagree with it.

I think it's a bad idea to grant read/write access for users to a hard drive's "root" directory.
It's better practice and easier to manage if after mounting the drive you create directories and assign permissions at that level. This makes backups easier. Allows you to grow a file system without repartitioning. Since newer drives are getting larger and larger it's easier to allocate the space to differnet users and or applications.

I realize that coming from the windows world this doesn't make sense but it will make your life easier.
Fstab setups are a breeze if done this way.

Again just my opinion.

vwfanatic
02-25-2004, 08:18 PM
Thank you for that Idea!

My question then changes, but yet stays the same.

How would I set user permissions to folders that I created on the Main Partition?
And in order to add a Directory to the Main Partition, I would still have to "su -" in terminal to make a new directory, yes?

Thank you for your help!

Abraham

j79zlr
02-25-2004, 09:01 PM
Originally posted by mdwatts
Try umask=777 as that should give everyone write access.

Have you had a look through the mount manpage (man mount)? You may find other suggestions.

umask is the opposite of chmod, umask=000 is = chmod 777

have you checked the permission on the dir you are mounting to? This should work

/dev/sda1 /scsi1 ext3 defaults,umask=0 0 0

vwfanatic
02-25-2004, 09:46 PM
Heck, this worked:

#chown -R [uuser] <path>

Abraham

teeitup
02-26-2004, 12:00 AM
The problem with that solution is it is only temporary.
Next time you mount it, it will revert back to root/root ownership.

If however you leave it root/root then as root change directories to the newly mounted drive.
cd /scsi1

as root...

mkdir download
mkdir mp3
mkdir mine

chgrp users download
chgrp users mp3
chown <your username> mine

chmod 774 downloads
chmod 774 mp3
chmod 470 mine


Add any users, including yourself, on the system to the "users" group that you want to have access to the download and mp3 directories.

You would now have two directories that anyone in the user group would have full control to.
Only you would have full control to the mine directory and noone else would even be able to browse it.

These are just rough examples since I have no idea what your ultimate goal is. This should give you an idea of where to start your reading. We all read a lot. It's the only way.

I would read the primer in the library on this site about file systems.

Good Luck,

vwfanatic
02-28-2004, 08:29 PM
Thank you, that makes sense.

It's working now, thanks a bunch,

Abraham