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.
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.
Im trying to set up a linux laptop in my school on a domain. Student logins and directories are saved on the server. I have set up access to the logins on the linux laptop, but now I need to figure out how to have student folders automounted at startup. The folder is named the same as the login, so for example Bob Smith's logon and folder would be Bob.Smith (FirstName.LastName), withing a folder called "Students" on the Windows Server. I know how to mount folders, but need help automounting a unique folder for each individual logging in. There are about 150 logins, so doing it manually is not gonna work. I was thinking a script would be the way to go, but maybe not.
I am using Suse 10.2 with KDE if that helps at all
... the script needs to parse $USER into the appropriate mount target name, then run the mount command. You want to invoke the script from the users login script.
Of course, the quick hack would be to add a launcher on the desktop to do this.
Is it that you want the students home directories to be obtained from the server and not get stored on your laptop?
"Is it that you want the students home directories to be obtained from the server and not get stored on your laptop"
Yes. The students need full read/write access so everything they save can be on their folder on the server, rather than just on the laptop. Basically this windows share has the files they need to access from any laptop in the school, windows or linux. Nothing saved locally on one laptop
Sorry if it seems like Im rushing this, but the tech person will be at the school tomorrow, and Im trying to get help with this so I can talk to him about it. I will need help making the actual script, more than just suggestions I think, because I know basically nothing about creating scripts
Hello,
I got the script to work, but I still have 2 small problems, more annoying than anything.
1. The script requires both the root password to use the "mount -t cifs" as well as
2.the password of the user currently logged in (because the share requires it for access.)
Is there a way to avoid having the user enter these? (because the script is in the autostart folder, and im actually trying to make it so the user doesnt see or have to interact with it at all)
the script looks something like this (although I didnt actually make the script myself, and therefore dont really know how exactly to modify it.)
echo $LOGNAME
DOMAIN=${LOGNAME%\\*}
USER=${LOGNAME/*\\}
mount -t cifs //server/share /mountpoint
As for the root password im not sure what to do. Is there a way I can make the mount command accessible for any user regardless of group or individual permissions. I really dont what to bother with sudo or permissions. (And right now normal users using the mount command is not at all a concern for me.)
Thanks for any help you can give me. Sorry for the long rant.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.