Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
I am trying to mount a drive off / using SuSE, but can't alter its permissions. I'm v new to all this stuff so sorry if its something dumb I'm doing.
I created a directory with my desired name off the root directory, and set it to chmod 777 -> all works AOK.
Then I go to the SuSE YaST partitioner tool, and create a primary partition for the drive => hdb1 and mount it on the directory that I created, plus then commit changes, which all appears to work fine.
But the permissions on the directory are now set to 755 and I can't change them. I run the chmod command to _set it to 777, and it doesn't error, running with verbose says it has set it to 777, but doing a listing shows it hasn't changed anything.
Can you post em up just for kicks? Also can you post up:
mount
And finally, what filesystem are they formatted as, you said you used Yast to create the partitions, but what did they get formatted as?
Choice !! Thanks for checking this out cause its got me mystified:
The file systems are FAT32 cause one drive is in a cage and may be placed into a windows machine so I chose a compatible format - Arrr !! but they may actually be NTFS as stands at the moment even tho the partition tool had format as Fat clicked. I'll try and force a format of them to something cause even tho FAT was selected for format, it only took seconds to create it all which surely can't mean that it phyically reformatted from NTFS to Fat ?
The_drive with this problem is a seagate 40Gb mounted as storage_fixd.
ssstorage:/ # mount
/dev/hda2 on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
shmfs on /dev/shm type shm (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hdb1 on /storage_fixd type vfat (rw)
ssstorage:/ #
of course you can't chmod files on a fat32 drive.... where does that information get held? remember that fat32 is a kindergarten file system. you need to set umask=000 as an option in fstab to set ALL the attributies on the drive to that.
if you'd said it was fat32 in your first post people would have realised that immediatley, please try to provide more complete information.
Fat32 But you'll just have to work with it a bit more. The man page for mount will be your friend as well as simple trial and error. For Fat32 you'll need to supply a umask upon mount up that will determine your permissions for the files on the drive. Something like umask=000 will give you all the needed ones.
Post back if I have confused you I'll be happy to break it down a bit better.
I have kind of got a functional system going now, by running FAT32 and setting the samba guest user to be root user which is letting me see the drive AOK for write as well as read. Probably a security risk I spose tho? umask I was looking at but got confused. Can it force the permissions for everything on that mount to be 777 by masking 000 overriding what appears to be a default for the FAT32 systems ?
Sorted - thanks for all the assistance. The umask option is cool - I was seeing it by default under man umask => displays bash, but I see umask under mount => more control than offered thru the SuSE gui tool.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.