简体   繁体   English

如何不允许其他用户在远程服务器中复制我的脚本

[英]how to not allow other user to copy my script in remote server

experts, i am using a Linux server where the same username and password are used by other persons to login and perform their work.专家,我正在使用 Linux 服务器,其他人使用相同的用户名和密码登录并执行他们的工作。 Some time they delete and misplace my scripts from that server.So in order to overcome this problem i want to know are there any procedure so that other users of same id cannot see and access my scripts.I hope experts will help me in this regard.有时他们会从该服务器上删除并放错我的脚本。所以为了解决这个问题,我想知道是否有任何程序可以让相同 ID 的其他用户无法看到和访问我的脚本。我希望专家在这方面能帮助我.

i am using `ssh` command to login

i am also trying to hide the script but not successfully done it.

Unix systems are not designed to protect against unwanted or malicious accesses from the same user. Unix 系统并非旨在防止来自同一用户的有害或恶意访问。 If all of the people on the machine are using the same user account, then to a Linux or Unix system, they are the same user, and each and every human has the same privileges to act on that file.如果机器上的所有人都使用同一个用户帐户,那么对于 Linux 或 Unix 系统,他们是同一个用户,每个人都有相同的权限来操作该文件。

If you want to have different access control permissions for different humans, then they need to have different accounts.如果您想为不同的人拥有不同的访问控制权限,那么他们需要拥有不同的帐户。 This is the basis of security permissions for Unix systems.这是 Unix 系统安全权限的基础。 This is also why many daemons run as their own unprivileged user: so that if one process gets compromised, it is unable to negatively affect other things on the system.这也是为什么许多守护进程以自己的非特权用户身份运行的原因:因此,如果一个进程受到威胁,它就无法对系统上的其他事物产生负面影响。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何运行脚本以将日志从远程服务器复制到本地 - How to run script to copy logs from remote server to local 我该如何计划一个脚本,使用CRON和SCP每小时使用时间戳将文件从远程服务器复制到本地计算机? - How can I schedule a script to copy a file from a remote server to my local machine every hour with a time stamp using CRON & SCP? 在远程服务器上以其他用户身份自动运行脚本 - Automate running script as a different user on remote server 将文件复制到远程服务器但位于属于其他用户的目录中? - copy files to remote servers but in a directory which belongs to some other user? 如何从Perl脚本检测我的服务器是否正在运行centos或其他 - How to detect if my server is running centos or other from a perl script 如何编写bash shell脚本ssh到远程机器并更改用户并导出env变量并执行其他命令 - how to write a bash shell script to ssh to remote machine and change user and export a env variable and do other commands 在 linux 上,如何允许任何用户写入文件,但只能通过运行我的(python)脚本? - On linux, how can I allow any user to write to a file, but only by running my (python) script? 如何使用脚本在远程服务器上`sudo su postgres` - how to `sudo su postgres` on a remote server with a script Git Remote尝试以我当前的本地用户身份连接到我的服务器 - Git remote tries to connect to my server as my current local user 用于在远程服务器中编写交互式用户输入并执行命令的脚本 - Script to write interactive user input and execute command in remote server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM