Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63
Rep:
do NOT chmod 777 your filesystem. This is a very bad thing to do. Instead, use my little suggestion above, and instead of ext3 or vfat or whatever, just put auto. Then, when you figure out what filesystem it is, fix the fstab. ok? do not chmod 777 the directory or the device. This ain't windows, kids.
/edit
How did you make the filesystem?
mke2fs /dev/hdb1 <------ will make ext2 filesystem.
mke2fs -j /dev/hdb1 <---------will make ext3 filesystem.
after your feedback, i am darn near convinced that this is your problem.
If you want, you can give me shell access when i get home, and i'll fix it for you.... lol!
''I want users to have read write and execute. '' so i think he wants
just that.
to protect parts of /opt2 from others then ''owner'', guess
to use chmod again....
edit: any file made by a user in that dir. will have default permissions
of that user i.e write-protected for others ( unless the owner changes it ).
so that should be ok......
I am ready to give up here......if you want to try i'll give you access to my shell account. Its a new system so there isn't much on it that i don't want people to see. my aim handle is didge84. If i am on that means i am by my computer and i'll give access to whoever want to take a try at it. I think i might try out Gentoo if this doesn't work.....
will give you wat you want. ( i just tried , every user who puts a file there, will be owner of
that file and so will be the only one with write-permission )
dunno what sketelsen means , there's no fs-prob, it's a permission prob.
there's no need to change owner ( or group ), the owner is the one whe sets the permissions,
and if he sets it to '777' anyone can read,write and execute. ( it's that simple.....) :-)
yip, guess you're right there, in fact the chmod 777 gives access to anyone , but that
was the exact Q. ( think chmod 770 is better, but then all users have to be member of that group and you gotto chgrp for that dir. indeed )
setting those permissions in fstab is only usefull for vfat , ntfs...etc. those perm's are for that whole partition.
when using ext3 fs, perm's are per dir. and per file, so you have to use 'chmod' to set them
and you can set them per file......
( learning learning every day... :-) )
nice it works.......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.