Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-05-2005, 04:02 AM
|
#1
|
Member
Registered: May 2003
Posts: 30
Rep:
|
The only thing that’s stopping deployment of Linux Workstations
Hello all, I am battling with this problem and have not managed to figure out a away around it.
I have domain users logging into kde and also ssh access using there domain credentials without any problems, when they login they are created a home area on the Linux box and an symbolic link:
ln –s /mnt/home/$USER homearea
The /mnt/home/$USER is there H: drive on the windows network, which works fine if I mount the shared area via root access.
The only problem I have with issuing the command via root and using the admin credentials for my windows environment, is that all security rights on the folders after /mnt/home seems to just disappear and users then have potential access to the whole share /mnt/home and not just there $USER area.
Testaccount is a windows domain user accessing not only his potential home area but also that of other users.
testaccount@comp:/mnt/home> cd /mnt
testaccount@comp:/mnt> ls -la
total 1
drwxr-xr-x 3 root root 72 2005-11-01 17:54 .
drwxr-xr-x 22 root root 552 2005-11-04 23:50 ..
drwxrwxrwx 1 root root 0 2005-11-04 19:30 home
testaccount@comp:/mnt>
testaccount@comp:/mnt> cd home
testaccount@comp:/mnt/home> ls -la
total 0
drwxrwxrwx 1 root root 0 2005-11-04 19:30 .
drwxr-xr-x 3 root root 72 2005-11-01 17:54 ..
drwxrwxrwx 1 root root 0 2005-11-04 18:14 linuxuser
drwxrwxrwx 1 root root 0 2005-11-04 18:29 testaccount
testaccount@comp:/mnt/home>
Like I said this is the only area that is holding my back from deploying Linux workstations on our network, I must be missing something so simple, but just cannot find a solution!!!
Many Thanks
Chris
|
|
|
11-06-2005, 04:06 AM
|
#2
|
Member
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729
Rep:
|
I'm no expert, but I believe that /etc/profile and /etc/bash.bashrc can be used to issue commands at login, so you can set the permissions on the folders to prevent snooping around by users.
|
|
|
11-06-2005, 08:28 PM
|
#3
|
Member
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338
Rep:
|
The problem (as I see it) is that you're mounting the share using a Windows account that grants access to the entire branch. Access should be controlled at the server, not at the client.
Possible solutions - Create separate Windows accounts and multiple mounts, one per user
- Use an NFS server (see diskless howto)
- Something using LDAP or Radius
Last edited by Snowbat; 11-06-2005 at 08:30 PM.
|
|
|
11-06-2005, 09:44 PM
|
#4
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
As snowbat says it looks like you're mounting the directories as a user which has admin priveleges on the network - ie. root. If you try to mount the home directory as the user what happens? What's in the /etc/fstab file on these workstations? What about using the user and credentials mount options in fstab or in the mount command, ie. something like this:
Code:
//server/home /mnt/home cifs user,credentials=/etc/samba/auth.SERVER.username 0 0
|
|
|
All times are GMT -5. The time now is 11:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|