×

Notice

The forum is in read only mode.

is it possible to use a samba shared folder as working directory for Code-Aster?

  • johannes ackva
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 years 10 months ago #2111 by johannes ackva
hello all,

is it possible to use a samba shared folder as working directory for Code-Aster?

Background: I work with Windows AND Linux-applications on the same projekt. Up to now I use to copy files between my Win and Linux working directory. I could save lots of copy operations and specelly a lot of attention to archiving, if I could do everything in only ONE (for example samba-shared) directory.

A first problem arises when I try to open an .ASTK-file which is located in a samba-shared directory. When doing File - Open - , I can select a Linux-directory (beginning with "/"), or the button "direct". Trying "direct", I paste the name of my samb-shared directory which is for example
smb://jo@ackva3/G$/08_Loe_Q1/POUTRE_nonlin
But ASTK doesn't accept it.

Can anyone tell me of there is a solution (or not)?
Thanks a lot

Johannes
More
16 years 10 months ago #2113 by Joël Cugnoni
Hello

it is not possible (to my knowledge) to use smb:// url from ASTK or Salome, but you can easily circumvent this by mounting your samba share in your linux file system, for example with the mount utility:
[code:1]
mkdir /mnt/winshare

mount -t smbfs //servername/sharename /mountdirectory -o username=yourusername,password=yourpassword
[/code:1]

I have not tried it yet but it should work.

Joël

Joël Cugnoni - a.k.a admin
www.caelinux.com
  • johannes ackva
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 years 9 months ago #2118 by johannes ackva
hi Joel

Unfortunalty I don't succeed to mount the samba share directory. With the 2 commands:

mkdir /mnt/win

mount -t smbfs smb://jo@ackva3 /mnt/win -o username=jo,password=******

I get the answer below which I do not understand. What am I doing wrong? Thanks, Johannes


Usage: mount.smbfs service mountpoint [-o options,...]
Version 3.0.25b

Please be aware that smbfs is deprecated in favor of cifs

Options:
username=<arg> SMB username
password=<arg> SMB password
credentials=<filename> file with username/password
krb use kerberos (active directory)
netbiosname=<arg> source NetBIOS name
uid=<arg> mount uid or username
gid=<arg> mount gid or groupname
port=<arg> remote SMB port number
fmask=<arg> file umask
dmask=<arg> directory umask
debug=<arg> debug level
ip=<arg> destination host or IP address
workgroup=<arg> workgroup on destination
sockopt=<arg> TCP socket options
scope=<arg> NetBIOS scope
iocharset=<arg> Linux charset (iso8859-1, utf8)
codepage=<arg> server codepage (cp850)
unix enable unix cifs extensions
nounix disable unix cifs extensions
unicode use unicode when communicating with server
lfs large file system support
ttl=<arg> dircache time to live
guest don't prompt for a password
ro mount read-only
rw mount read-write

This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
More
16 years 9 months ago #2120 by Joël Cugnoni
The URL seems to be not OK:
you should remove "smb: and jo@" from the command line.

The command should looks like this normally:

mount -t smbfs //ackva3/shareName /mnt/win -o username=jo,password=******

Joël Cugnoni - a.k.a admin
www.caelinux.com
  • johannes ackva
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 years 9 months ago #2121 by johannes ackva
Thank again for Your answer.

I have now another problem. After turning off the computer and restarting the Virtual machine I can not reach any place outside the virtual machine. If I remember well this has happened some days ago in the same way, but then for any reason which I dont understand, the connection is re-enabled. Actualy, e-mail and internet-browser don not work, and doble clicking on SambaShares I get the answer "Unable to find any workgroup in Your local network. This might be caused by an enabled firewall" Can You give me a hint wher I must look to remedy this problem? The VM is installed on a Win2000 system. I think there is no firewall (but am not shure). Can the Anti-virus program have any effect?

Johannes
  • johannes ackva
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
16 years 9 months ago #2123 by johannes ackva
hello Joel,

Actually, the connection to the host computer is re-enabled (after rebooting both - the real and the virtual machine, I dont understand how...), so I continue with my original problem.

Now there is the problem that I have no write permission with ASTK or EFICAS, which I use as user "caelinux". I created my mounting directory win_F as caelinux. So caelinux is the owner:

drwxrwxr-x 2 caelinux caelinux 4096 Jul 14 18:24 win_F/

Then I change in the shell to be user "root" (using command su). I make:

mount -t smbfs //ackva2/F$ /home/caelinux/win_F -o username=jo,password=******

After this, the ownership of win_F (and all its subdirectories and files which are now reachable), is automatically changed to :

drwxr-xr-x 1 root root 4096 Jul 14 21:35 win_F/

I try as su to rechange it:

chown caelinux:caelinux /home/caelinux/win_F

but the anser of the shell ist:
chown: changing ownership of `/home/caelinux/win_F': Operation not permitted

After unmounting the ownership can be changed.

Seems that the ownership of a mounted samba share directory is not possible to change. Or do You know how and what can I do?

thanks, Johannes
Moderators: catux
Time to create page: 0.128 seconds
Powered by Kunena Forum