我能够通过SSH连接到我的学校服务器。 我有一个任务,我应该使用触摸命令来创build一个新的文件。 但是它拒绝返回权限。 其他人也能做同样的事情。 虽然为什么我一直得到这个错误?
以下是来自terminal的input。
Last login: Tue Aug 23 09:16:18 on ttys000 Dominiks-Air:~ fsociety95$ ssh [email protected] [email protected]'s password: Last login: Tue Aug 23 09:16:35 2016 from pool-72-94-210-193.phlapa.fios.verizon.net
Navajo是为员工,教师和学生提供的Linux shell服务器。 操作系统是RedHat Enterprise Linux 5。
作为邮件客户端已经提供了Alpine,Pine的替代品。 在命令提示符下运行“pine”。
服务未能启动错误1920
Python – testing目录权限
logonSessionId帐户分配了新证书中的读取权限?
该服务器还为用户提供networking空间。 网页可以存储在〜/ www目录中。 这也可以通过将驱动器映射到 navajo homepage来访问。 您的首页的url是http://user.dtcc.edu/~username/ 。
您的主目录也可以通过映射到 navajo 在Windows中访问。
如果出现任何问题,请发送邮件至path@dtcc.edu。
不能chdir到主目录/ u / d / j / djaneka1:没有这样的文件或目录
-bash-3.2$ touch today touch: cannot touch `today': Permission denied -bash-3.2$ pwd / -bash-3.2$ touch today touch: cannot touch `today': Permission denied -bash-3.2$
编辑:这是ls -al的结果
-bash-3.2$ ls -al total 204 drwxr-xr-x 25 root root 4096 Aug 22 16:50 . drwxr-xr-x 25 root root 4096 Aug 22 16:50 .. -rw-r--r-- 1 root root 0 Aug 3 14:01 .autofsck -rw-r--r-- 1 root root 0 Jan 30 2009 .autorelabel -rw------- 1 root root 2050 Aug 3 14:00 .bash_history drwxr-xr-x 2 root root 4096 May 4 04:14 bin drwxr-xr-x 4 root root 3072 Aug 3 13:57 boot drwxr-xr-x 11 root root 4060 Aug 3 14:02 dev drwxr-xr-x 87 root root 12288 Aug 23 10:05 etc drwxr-xr-x 3 root root 4096 Oct 1 2009 home drwxr-xr-x 13 root root 12288 Jun 1 04:09 lib drwx------ 2 root root 16384 Mar 24 2008 lost+found drwxr-xr-x 3 root root 4096 Oct 1 2009 media drwxr-xr-x 2 root root 0 Aug 3 14:02 misc drwxr-xr-x 4 root root 4096 May 26 2012 mnt drwxr-xr-x 2 root root 0 Aug 3 14:02 net drwxr-xr-x 9 root root 4096 Jan 5 2009 nsr drwxrwxr-x 3 root root 4096 Oct 12 2015 opt dr-xr-xr-x 219 root root 0 Aug 3 14:01 proc drwxr-x--- 12 root root 4096 Apr 22 10:06 root drwxr-xr-x 2 root root 12288 Aug 4 04:02 sbin drwxr-xr-x 2 root root 4096 Oct 1 2009 selinux drwxr-xr-x 2 root root 4096 Oct 1 2009 srv drwxr-xr-x 11 root root 0 Aug 3 14:01 sys drwxrwxrwt 38 root root 4096 Aug 23 10:07 tmp drwxr-xr-x 34 root root 4096 Jun 21 08:29 u drwxr-xr-x 14 root root 4096 Apr 16 2010 usr drwxr-xr-x 24 root root 4096 Apr 16 2010 var -rw------- 1 root root 2865 Dec 16 2008 .viminfo -bash-3.2$
编辑:
这是我在touch today尝试touch today /home后看到的内容
如何在虚拟主机上安全地拥有多个用户
许可在FEDORA 20,APACHE上被拒绝
所以要尝试在根目录中创建一个新文档,您需要将其识别为root用户。 这意味着使用sudo命令。 但是,你需要一个你可能没有的密码。 如果你做得很完美。 但无论如何,我不会建议添加文件到根目录。 请尝试以下操作:
cd home touch today
这应该工作得很好,并回答你的问题。
如果你现在需要/想在你的根目录下创建,请尝试以下操作
sudo touch today
无论如何,我建议阅读这可能是非常有用的。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。