YaAqoB Posted January 28, 2005 Report Share Posted January 28, 2005 (edited) Hi all. I have a partition called /mnt/LinuxStuff I can create new directories and write to that directory but it won't allow me to create or write to any of the directories inside /mnt/LinuxStuff Anyone one have any clues as to why I can't add files to the directories I can create. The line in fstab is as follows /dev/hdd2 /mnt/LinuxStuff ext3 defaults 1 2 Edited February 3, 2005 by YaAqoB Quote Link to comment Share on other sites More sharing options...
Dyslexic Posted January 28, 2005 Report Share Posted January 28, 2005 Are you writing new files/dirs with the same user who created the dirs you're trying to write to? Quote Link to comment Share on other sites More sharing options...
nchancock Posted January 29, 2005 Report Share Posted January 29, 2005 Indeed, this sounds like a problem with permissions. If the user you're logged on with is not part of the user group of the user that created the dirs/files, you won't be able to write to them. If this is the case, you could simply add yourself to the right user group and you'll be able to access the files/dirs. If you created the files/dirs with root, it would be a bad idea to add yourself to the root group as that is rather insecure. It would be better, then, to just change the owner of the dirs to your preferred login's name using chown. Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted January 29, 2005 Report Share Posted January 29, 2005 Just to double-check, are you sure that the partition is mounted? Not just a folder where you think the partition is mounted? Quote Link to comment Share on other sites More sharing options...
nchancock Posted January 29, 2005 Report Share Posted January 29, 2005 Just to double-check, are you sure that the partition is mounted? Not just a folder where you think the partition is mounted? <{POST_SNAPBACK}> Hmmm, good point, didn't even think of that ... Quote Link to comment Share on other sites More sharing options...
YaAqoB Posted January 30, 2005 Author Report Share Posted January 30, 2005 Sorry for the slow reply. The drive is mounted. How do I use chown to give ownership of /mnt/LinuxStuff & /mnt/Movies and their sub directories to myself? Quote Link to comment Share on other sites More sharing options...
YaAqoB Posted January 31, 2005 Author Report Share Posted January 31, 2005 I'm having the same issues with /mnt/Movies Here is my entire fstab file just incase there is something in there causing grief. /dev/hda6 / reiserfs notail 1 1 none /dev/pts devpts mode=0620 0 0 /dev/hdd2 /mnt/LinuxStuff ext3 defaults 1 2 /dev/hdd1 /mnt/Movies vfat umask=0,iocharset=iso8859-15,codepage=850 0 0 /dev/hdb5 /mnt/OtherStuff ntfs umask=0,nls=iso8859-15,ro 0 0 /dev/hdb1 /mnt/WindowsApps ntfs umask=0022 0 0 /dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec,users 0 0 /dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-15,ro 0 0 none /proc proc defaults 0 0 /dev/hda5 swap swap defaults 0 0 /dev/sdd1 /mnt/hd auto umask=0,user,iocharset=iso8859-15,sync,kudzu,codepage=850,noauto,exec,users 0 0 Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted January 31, 2005 Report Share Posted January 31, 2005 chown -r yourusername:yourusername E.g. if username is mryan chown -r mryan:mryan gives you access.. Quote Link to comment Share on other sites More sharing options...
YaAqoB Posted February 3, 2005 Author Report Share Posted February 3, 2005 THank you very much for that. It gave me a whole buch of errors about not having user acces to do it but still worked anyway. Not sure why it went like that to start with but its working so I'm happy. Thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.