1837905 Members
3175 Online
110124 Solutions
New Discussion

cifsmount query

 
KVK
Valued Contributor

cifsmount query

Hello experts

I want to use the #cifsmount utility by one of my system user . it's throwing the error obviously from the guide #cifsmount can be executed by root user only

How i can execute the cifsmount by other user ?

Error message:
===============
$cifsmount
cifsmount: must be root to use cifsmount
6 REPLIES 6
Devender Khatana
Honored Contributor

Re: cifsmount query

Hi,

The easiest method of achiving this will be to use sudo. This is a small application available on Internet Express cdrom received alongwith Software updates or can be downloaded.

After installing this you can assign desired previledges to end users and their these activities are very well logged with proper timings in syslog.log.

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: cifsmount query

Hello,

Only users with root capabilities can invoke the cifsmount command to mount filesystems.
It is no possible to execute by other user. You can try configuring "sudo" in order to accomplish that.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Devender Khatana
Honored Contributor

Re: cifsmount query

HI,

Here in online manual & download link about sudo.
http://gratisoft.us/sudo/man/sudo.html

HTH,
Devender
Impossible itself mentions "I m possible"
KVK
Valued Contributor

Re: cifsmount query

Thanks for quick replies . Let think i installed SUDO and i assigned the previliges to non-root user .. If i mount the Windows filesystem using #cifsmount by non root user what will be directory ownership?

If i use the #cifsmount normally the directory ownership will be root & sys
RAC_1
Honored Contributor

Re: cifsmount query

Directory perms would be what you set for mount point. sudo just helps you do run that command as root.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: cifsmount query

Hello,

Sudo gives you an option to run a command with root's previleges. So, if you mount, it will be of root.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"