LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-16-2015, 03:39 PM   #1
smeagolinux
LQ Newbie
 
Registered: May 2015
Posts: 7

Rep: Reputation: Disabled
problem with mapping folders


Hello , I have a LTSP server on your network running (Ubuntu 14).


On the same network have a file server running Samba .


When the user logs LTSP I run the following script to map a folder on the file server in your home :

Code:
#!/bin/bash
sudo umount /home/user/public
sudo mount -t cifs -o username=user,password=123,uid=user,gid=user //192.168.0.1/public /home/user/public
My problem is that this script sometimes does not work often need to log out and log in again to run the mapping.


Can anyone tell the reason that the mapping does not work often ?


note: I have this script running on various users, and each user has folders other than the public.
 
Old 05-16-2015, 07:49 PM   #2
smeagolinux
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I found the problem ... can not mount the same point in two users ....

Code:
mount: //192.168.0.1/share already mounted or /home/user1/share busy
Its mount the same directory in different homes ?

Last edited by smeagolinux; 05-16-2015 at 08:10 PM.
 
Old 05-17-2015, 08:22 AM   #3
smeagolinux
LQ Newbie
 
Registered: May 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I will summarize what I need ...

I need a folder of an internal Samba server to be shared for all users (the same share ) but the system does not allow .

I have the folder:

Code:
//192.168.0.1/public
and I need to share it in:

Code:
/home/user1/public
/home/user2/public
/home/user3/public
/home/user4/public

...
Is there any solution ?

Last edited by smeagolinux; 05-17-2015 at 08:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
[SOLVED] Mapping folders via RDP session. ursusca Linux - General 2 03-04-2010 01:46 AM
Samba mapping problem Evilone Linux - Software 1 06-05-2003 03:37 AM
Keyboard mapping problem lansman Linux - Newbie 1 03-15-2003 11:45 AM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration