H
H
Harbid Abu Marhamedoff2015-10-22 06:33:57
linux
Harbid Abu Marhamedoff, 2015-10-22 06:33:57

How to mount CIFS as user in RHEL 7.0?

There is a RHEL 7.0 server, it is necessary to connect a screw ball to merge the backup. The script runs on behalf of a regular user, not even a sudoer. Is it possible to do something? Tried a bunch of things - it doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Harbid Abu Marhamedoff, 2015-10-22
@harbid

That's it, damn it! Got it!
Mounting helped
chmod +s /usr/sbin/mount.cifs
as root.
Adding the
oracle ALL=(ALL) NOPASSWD: /usr/bin/umount line to
/etc/sudoers and running sudo umount /media/bk helped with unmounting serverip/bk /media/bk cifs rw,user,uid=User's_UID_Enter_HERE,suid,noauto,username=login,password=pass 0 0 The User's_UID_Enter_HERE value for the user running the script can be found with the command cat /etc/passwd Somehow So :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question