由买买提看人间百态

topics

全部话题 - 话题: drwxr
1 (共1页)
h**********r
发帖数: 174
1
来自主题: Programming版 - a PERL opendir/readdir question
Here is what is the directory:
-bash-3.00$ ls -al
total 7
drwxr-xr-x 5 x student 512 Aug 14 16:54 .
drwx------ 11 x student 3072 Aug 14 16:55 ..
-rw-r--r-- 1 x student 0 Aug 14 16:54 a.txt
drwxr-xr-x 5 x student 512 Aug 14 14:55 blackHole
-rw-r--r-- 1 x student 0 Aug 14 16:54 b.xml
drwxr-xr-x 2 x student 1024 Aug 14 16:42 coloring
drwxr-xr-x 11 x student 512 Aug 14 14:55 composed
As you can see, there are THREE directories and TWO normal files. I want to
process all of them.
m**e
发帖数: 150
2
来自主题: Unix版 - Strange thing in Solaris
There is a strange file in my directory and I can't delete
it. Does anyone meet the same thing and know what's the problem?
Thanks.
bash-2.00$ ls -al
total 4
drwxr-xr-x 2 yu ksgroup 512 Sep 4 18:19 .
drwxr-xr-x 4 yu ksgroup 1024 Sep 4 18:11 ..
-rw-r--r-- 1 yu ksgroup 0 Sep 4 18:16 .nfs59AB
bash-2.00$ rm .nfs59AB
bash-2.00$ ls -al
total 4
drwxr-xr-x 2 yu ksgroup 512 Sep 4 18:19 .
drwxr-xr-x 4 yu ksgroup 1024 Sep 4 18:11 ..
-rw-
i**********r
发帖数: 70
3
suppose user is xyz:
macbook-air:~ xyz$ ls -ld /Users/xyz
drwxr-xr-x+ 37 xyz staff 1258 May 29 23:45 /Users/xyz
macbook-air:~ xyz$ ls -ld /Users/xyz/.
drwxr-xr-x+ 37 xyz staff 1258 May 29 23:45 /Users/xyz/.
Here is the problem:
macbook-air:~ xyz$ sudo mkdir .cpan
Password:
mkdir: .cpan: Operation not permitted
macbook-air:~ xyz$ sudo cpan
...
CPAN build and cache directory? [/Users/xyz/.cpan]
Couldn't create directory /Users/xyz/.cpan.
Please retry.
Anyone can help ?
Thanks!
y****e
发帖数: 19
4
是要去该路径下再次chown 么?
ellery@ellery-Ubuntu:~/.aMule$ ls -ld ~/.aMule/
drwxr-xr-x 4 root root 4096 2009-03-07 00:01 /home/ellery/.aMule/
ellery@ellery-Ubuntu:~/.aMule$ cd ~/.aMule/
ellery@ellery-Ubuntu:~/.aMule$ chown ellery:ellery *
ellery@ellery-Ubuntu:~/.aMule$ ls -ld ~/.aMule/
drwxr-xr-x 4 root root 4096 2009-03-07 00:01 /home/ellery/.aMule/
e**********y
发帖数: 128
5
I could not find file ~/.fonts.conf but there was a directory contains two
binary file. Please see below:
[XXXXX@bpsc-fserv10 ~]$ ls -al |grep '^.' |grep 'font'
drwxr-xr-x. 2 XXX XXX 4096 Aug 5 10:09 .fontconfig
~this is a folder rather than a file
[XXXXX@bpsc-fserv10 ~]$ ls .fontconfig/ -al
total 28
drwxr-xr-x. 2 XXXX XXXX 4096 Aug 5 10:40 .
drwx------. 41 XXXX XXXX 4096 Aug 5 10:56 ..
-rw-rw-r--. 1 XXXX XXXX 1288 Aug 5 10:40 3830d5c3ddfd5cd38a049b759396e72e
-le64.cache-3
-rw-rw-r--... 阅读全帖
s******y
发帖数: 68
6
来自主题: Programming版 - why could I not run .profile file?
drwxr-xr-x 2 rxd15 p2000 160 2009-06-16 16:30 .
drwxr-xr-x 3 root root 72 2009-06-16 10:56 ..
-rw------- 1 rxd15 p2000 328 2009-06-16 16:52 .kshrc_history
-rw------- 1 rxd15 p2000 35 2009-06-16 16:30 .lesshst
-rwxr-xr-x 1 rxd15 p2000 6385 2009-06-16 16:30 .profile
-rw------- 1 rxd15 p2000 0 2009-06-16 15:00 .Xauthority
rxd15@devlnx1:/home/p2000/rxd15> . .profile
-ksh: .: .profile: cannot open [No such file or directory]
e*i
发帖数: 10288
7
来自主题: Hardware版 - 请教个网络用户名的问题
simply change the folder / file properties on pogoplug
eg, your shared folder is /mnt/samba
#chmod 1777 /mnt/samba
drwxrwxrwx 21 root root 4096 Mar 21 00:21 samba
EVERYONE can now read/write/execute your folder.
sometimes it might be a good idea to use nobody / nogroup
as the user/group
just something like this
drwxr-xr-x 4 nobody nogroup 4096 Jan 10 1970 temp
y****e
发帖数: 19
8
root priority 就是要sudo了吧, 然后 好像么撒变化似的..
ellery@ellery-Ubuntu:~$ sudo chown ellery:ellery *
[sudo] password for ellery:
ellery@ellery-Ubuntu:~$ ls -l /home/ellery/.aMule
total 88
-rw-r--r-- 1 root root 3786 2009-03-07 00:01 amule.conf
-rw-r--r-- 1 root root 5 2009-03-06 05:11 clients.met
-rw-r--r-- 1 root root 5 2009-03-06 23:49 clients.met.BAK
-rw-r--r-- 1 root root 365 2009-03-06 05:08 cryptkey.dat
-rw-r--r-- 1 root root 5 2009-03-06 05:11 emfriends.met
drwxr-xr-x 2 root root 4
y****e
发帖数: 19
9
跟刚才一样没差啊
ellery@ellery-Ubuntu:~/.aMule$ ls -l ~/.aMule
total 88
-rw-r--r-- 1 ellery ellery 3786 2009-03-07 00:01 amule.conf
-rw-r--r-- 1 ellery ellery 5 2009-03-06 05:11 clients.met
-rw-r--r-- 1 ellery ellery 5 2009-03-06 23:49 clients.met.BAK
-rw-r--r-- 1 ellery ellery 365 2009-03-06 05:08 cryptkey.dat
-rw-r--r-- 1 ellery ellery 5 2009-03-06 05:11 emfriends.met
drwxr-xr-x 2 ellery ellery 4096 2009-03-06 05:07 Incoming
-rw-r--r-- 1 ellery ellery 182 2009-03-06 05:08 ipfilter.dat
-rw-r
y****e
发帖数: 19
10
ei... 好吧.
ellery@ellery-Ubuntu:~$ ls -l ~/.aMule/
total 88
-rw-r--r-- 1 ellery ellery 3786 2009-03-07 00:01 amule.conf
-rw-r--r-- 1 ellery ellery 5 2009-03-06 05:11 clients.met
-rw-r--r-- 1 ellery ellery 5 2009-03-06 23:49 clients.met.BAK
-rw-r--r-- 1 ellery ellery 365 2009-03-06 05:08 cryptkey.dat
-rw-r--r-- 1 ellery ellery 5 2009-03-06 05:11 emfriends.met
drwxr-xr-x 2 ellery ellery 4096 2009-03-06 05:07 Incoming
-rw-r--r-- 1 ellery ellery 182 2009-03-06 05:08 ipfilter.dat
-r
y****e
发帖数: 19
11
ellery@ellery-Ubuntu:~/.aMule$ ls -ld ~/.aMule/
drwxr-xr-x 4 root root 4096 2009-03-07 00:01 /home/ellery/.aMule/
l********0
发帖数: 283
12
来自主题: Linux版 - 一个非常烦人的problem
有一个目录是/share/apps
我想在share里创建reference目录,但是:
mkdir /share/reference
mkdir: cannot create directory `/share/reference': No such file or directory
然后我想删除share目录,重现创建,但是:
rm -rf /share/
rm: cannot remove directory `/share//apps': Device or resource busy
~~~~我不知道为什么出现了两个/
另外查看share的信息时,size是0,好像这个也不正常:
drwxr-xr-x 3 root root 0 Dec 11 11:24 share
请大家指教。谢谢。
G**Y
发帖数: 33224
13
咋回事?
如果建一个字目录,子目录是可以读写的。
但是根目录里不能新建目录和文件。
根目录的权限是dr-xr-xr-x
其他目录和文件的权限都是
drwxr-xr-x
mount用的是
cifs user,suid,credentials=/root/.crednetials,isocharset=utf8,uid=1000,gid=
1000,file_mode=0755,dir_mode=0755 0 0
有啥问题吗?同样的设置,mount其他的目录没有问题。
就是这个windows 7底下的目录,有问题。
windows 7是登录到domain上的。不知道有啥影响不?
谢谢了。
a9
发帖数: 21638
14
来自主题: Linux版 - 请教一个samba共享的问题
我在ubuntu上,用samba共享文件给windows客户端。
有一个目录,假设为A,是这样配的
[A]
comment = A
path = /var/lib/A
browseable = yes
read only = yes
guest ok = yes
ls /var/lib
drwxrwsr-x 2 test test 24576 2011-02-10 15:08 A
另外,有个目录是B,
ls /var/lib
drwxrwxrwx 12 root root 20480 2011-02-10 15:10 B
B下面有一些子目录,子目录里的文件是A下面文件的link
其中子目录的权限是
drwxr-xr-x 2 test test 4096 2011-02-10 15:10 Chuggington
在smb.conf中,B是这样共享的
[B]
comment = B
path = /var/B
browseable = yes... 阅读全帖
r****r
发帖数: 1839
15
我从网上下载并安装了Fedora 14,结果好多东西默认都没给装,也行。咱自己安装,
以Java为例:yum install java 完事以后,看看各种乱七八糟的Java令人眩晕
/usr/bin/Java 只是一个连接:/usr/bin/java -> /etc/alternatives/java
而后者又是一个连接:
/etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
如果你到/usr/lib/jvm里面去看,里面一堆相似的Java和jre
[root@blah jvm]# ls -l
total 4
lrwxrwxrwx 1 root root 26 May 9 11:11 java -> /etc/alternatives/java_sdk
lrwxrwxrwx 1 root root 32 May 9 11:11 java-1.6.0 -> /etc/alternatives/
java_sdk_1.6.0
lrwxrwxrwx 1 root root 26 May 9... 阅读全帖
c********g
发帖数: 1173
16
来自主题: Linux版 - 见鬼了。Apache 403 Forbidden
在家setup一个test server。设置全是从我的production上抄下来的。不知怎么就总是
出这个403 error。server ip is 192.168.2.5. On my desktop I change my host
file to pointing www.clingmarks.com to 192.168.2.5.
下面是设置。那位给看看吧。
ls -l /var/www/
total 12
drwxr-xr-x 2 root root 4096 2011-08-04 11:26 clingmarks.com
-rwxr-xr-x 1 root root 177 2011-07-25 16:10 index.html
==============================
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 americano
192.168.2.5 americano.clingmarks.com www.clingmarks.com
# The following line... 阅读全帖
y***d
发帖数: 2330
17
来自主题: Linux版 - 当心Ubuntu 11.04 内置 spyware
不过 Ubuntu 的人现在管这个叫 myware,
这个默认安装的软件叫做 zeitgeist,偷偷记录你的所有活动,“It logs and tags
every document, website, conversation, email, note and application that’s
opened on the GNOME desktop.”
如果想知道它具体记录的内容,可以查看 ~/.local/share/zeitgeist,
-rw-r--r-- 1 ylsdd ylsdd 1492992 2011-08-12 00:36 activity.sqlite
-rw-r--r-- 1 ylsdd ylsdd 65528 2011-08-12 00:36 activity.sqlite-journal
-rw-r--r-- 1 ylsdd ylsdd 336 2011-08-12 00:07 datasources.pickle
drwxr-xr-x 2 ylsdd ylsdd 4096 2011-08-12 00:36 fts.index
d******i
发帖数: 7160
18
好像mount上的硬盘属性是
drwxr-xr-x
是不是需要
drwxrwxrwx
才行?
试着chmod 0777,没用,也不报错。
chown -R 0777,出错。
咋整?
r*****s
发帖数: 985
19
来自主题: Unix版 - 请教有关ls -l的一个小问题
那位大虾能给偶解释一下:
ls -l后的total block数是怎么算出来的?
xxx.cs.xxx.edu% ls -l
total 4
~~???(1)
-rw-r--r-- 1 xxxxxx students 25 Jan 14 17:38 2tt.txt
drwxr-xr-x 2 xxxxxx students 512 Jan 14 17:39 temp2/
~?(2) ~~~???(3)
1:这个block数怎么算出来的?
2:为什么对于directory,有的link数是2,有的是3,5,6...?
3:为什么对于directory,有的字节数是512,有的是1024...?
Thanks a lot!
h*****t
发帖数: 40
20
来自主题: Unix版 - 文件删不掉
Solaris 上的
偶不是root,没有admin权。
大家明眼就看出是某种论坛的上传文件
无色情,无反动,无盗版。
现在里面东西占地方太多,怎么删?
偶不想去找root干这事,毕竟偶自己偷着装论坛的。
BTW,这个论坛程序太WK了,生成一堆垃圾,还不让删。DD
drwxr-xr-x 2 nobody bin 11776 May 22 03:25 ./
drwx---r-x 34 "me" "my group" 4608 Mar 17 17:47 ../
-rwxr-xr-x 1 nobody bin 927037 Oct 15 2001 forum10_f_4.zip*
-rwxr-xr-x 1 nobody bin 273065 Dec 21 05:08 forum12_f_10.jpg*
-rwxr-xr-x 1 nobody bin 190839 Dec 21 05:13 forum12_f_11.jpg*
-rwxr-xr-x 1 nobody bin
k*****l
发帖数: 177
21
来自主题: Unix版 - unix mount nfs , pwd wrong?
drwxr-xr-x 6 root sys 128 May 15 2003 /datadisk//
faint, how to fix it ?
m****m
发帖数: 2452
22
来自主题: _voip版 - dockstar的内存还是太小了。
你TRANSMISSION是怎么设的,我怎么总是有PERMISSION问题,就是往
MOUNT的USB硬盘上写文件,总是说没有PERMISSION。可是那个硬盘的
目录是drwxr-xr-x的权限。

da
1 (共1页)