Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
as the controller of my file server, i want to be able to access all accounts on it without any problems. for some reason, after mounting one of the accounts to my personal home folder from the server, and try putting a file on it, i get this error.
Error "File not found" while copying "/home/justin...s/intro.doc".
I give all accounts (except mine) chmod 550, so that they can't write to their home folder, and can't look in other peoples folder. But when i sign into my account, i want to be able to see everything, and be able to do anything i want. delete files, create files, look into people's home folders. any ideas?
Hi Justin,
This might be a permission issue, or it might be something else. Could you post your /etc/fstab or the mount command you used to manually mount the file system? Is the file system you're mounting on the same server (e.g., separate partition) or is it a network share?
To be thorough, once you have your file system mounted also post the outpout of "cat /etc/mtab".
I give all accounts (except mine) chmod 550, so that they can't write to their home folder, and can't look in other peoples folder.
What does it mean to "give all accounts (except mine) chmod 550"? And why would you want to do this? There's no point to denying permissions to the owner of something (since they control the permissions).
If you mounted a partition at your home directory you won't see any of the files that were in that directory. For example, if you have a file called /home/justin/intro.doc and then you mount a partition with something like mount /dev/something /home/justin then the files that were in /home/justin are no longer visible. After you umount with umount /dev/something then /home/justin/intro.doc will again be visible.
You could mount the partition a level lower, for example mount /dev/something /home/justin/mnt and that would work. Either that, or I'm mis-interpreting your error
Please read spooon's reply carefully - if you do chmod 0550 /home/bloggs and bloggs is the owner of /home/bloggs, then bloggs can change the permissions to whatever they like.
to mount my account on the debian server, i used the program smb4k, which is a graphical program that allows mounting shares and acts as a samba client. and it is a network share because it's not part of the harddrive im using now, its in the server.
and i am using ubuntu so i dont know how to graphically log into root. also, i am denying these permisions because i dont want them to put stuff into the server, i just want them to take stuff from it. in other words i dont want it used as a storage space for their stuff. is there anyway to not let them change their permissions?
Last edited by Justin2021; 07-26-2006 at 09:59 PM.
and i am using ubuntu so i dont know how to graphically log into root. also, i am denying these permisions because i dont want them to put stuff into the server, i just want them to take stuff from it. in other words i dont want it used as a storage space for their stuff. is there anyway to not let them change their permissions?
Never log into X as root. Ubuntu's good in that way.
If you just want them to 'take', why don't you just create a shared directory that allows access from anyone?
Could you clarify which server is supposed to be doing what and what you are trying to do with the servers? For ex., what directory on which server do you want users to access but not write to? How are users getting access to that directory -- Samba, http, a graphical or terminal session on the file server, NFS?
okay, i have a debian server running samba that i want to use as a sort of repository. you can get stuff from it, but you cant add to it. every person's account can't be written to by them, but i want to be able to write and add to it. lets say i made an account for a friend and its called /home/travis/. well, i want travis to only be able to draw from this account, and not be able to store things in this accoutn, for hard drive space reasons. but yet, if i want to give travis something, lets say a text file, i have the power to go into his acount and put that text file in there, without having any permission problems. those people would be using ssh to get to their account.
If you're going to use samba, why not just set "read only = yes" on the shares?
because when the people log on, they are not connecting to samba, they are actually going into the server and accessing their home folders in the server.
Ok, so you want users with full SSH access to be unable to write to any part of the system? That'll need quite a bit of tweaking. Take /tmp for example... any user can write files there.
Securing their home directory... I guess you'd need to create a group for each user, then make their home directory owned by root:<their group> with permissions like 750. Then place files in there and set the owner and permission accordingly as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.