I'm running a process on a Unix box (I think it's a recent version of Red Hat, I can check for more detailed info if relevant), under a local user.I would like to access some network resources, via a Windows domain account.How do I/Can I associate the local user with a windows domain account just for the purposes of running this one process?
How do I impersonate a windows domain account user from a linux process?
authentication;active directory
Accessing filesThere are various ways to do this, but the simplest is probably to use Nautilus.InstallationTo access Samba Shares through Nautilus install the gvfs-smb package, available in the official Yum repositories.$ yum search gvfs-smbLoaded plugins: auto-update-debuginfo, langpacks, refresh-packagekit=============================================================== N/S matched: gvfs-smb ================================================================gvfs-smb.x86_64 : Windows fileshare support for gvfsIf it's not installed:$ sudo yum install gvfs-smbThen from Nautilus, press Ctrl+L and enter smb://servername/share in the location bar to access your share. The mounted share is likely to be present at /run/user/<your_UID>/gvfs in the filesystem.ExampleAfter putting the following into Nautilus' location bar, smb://sam@bart/mp3s-1.                        After providing the appropriate credentials you'll see the windows share, from the window's CIFS server.         NOTE: In the above example, bart is the windows server, the user is sam, and the CIFS share is /mp3s-1.Accessing processesTo interact with processes on a Windows system from a Linux system you can use the tool winexe. It should be in most distros' repos.ExamplesSee the list of processes / logged in users$ winexe --system -U 'DOMAIN\Administrator%password' //192.168.10.21 tasklist /VStart cmd.exe console$ winexe --system -U 'DOMAIN\Administrator%password' //192.168.10.21 cmd.exescreenshot   ReferencesAccessing Windows console remotely from Linux