Code: Select all
//10.48.1.220/Tecnologia /media/Tecnologia cifs credentials=/etc/samba/credencial,_netdev,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
the credentials file have my username, password and domain
the "_netdev" is supose to wait for network device already start and have an ip (does not work i need)
i am using NetworkManager, because with Static IP, or with DHCP, i never get IP from DHCP, ironically, but with Network Manager works fine.
Someone knows if exist an network manager can be started in the system startup without wait reach the graphical system ?
I notice, the network manager wait my user session start to start network manager and get ip, why?
when is based on dhcp server, dhcp server assing the ip based on mac address, and for ethernet device and machine assign one ip address and the machine ever use the same, except when the user needs to make some network test.
For me the logical order should be something like this :
01 - start the network manager in system startup, before read the fstab file
02 - if the network is working try to mount the network shares inside the fstab file
Because actually for me looks like :
01 - try the network start ( if Network manager, just ignore it )
02 - meanwhile make the mounts inside on the fstab file, no matter if exist a network mount point just fail, because the network is not active
03 - reach the graphical system, and wait the user session start
04 - when the user session start ( on my case xfce desktop ) , startup the network device via NetworkManager
well , I have an idea for how to do a very forced search for this, for example:
Create a custom script to test the intranet connection
If it receives a "1", mount the shared folder
Edit the /etc/sudoers file
Assign execute permission without password for any user to my custom script
Although for that I would need to at least make Network Manager initiate the connection via DHCP as soon as the graphical environment starts, before any user logs in.