由买买提看人间百态

topics

全部话题 - 话题: writeable
(共0页)
r*****r
发帖数: 397
1
来自主题: BuildingWeb版 - how to make a dir readable/writeable
I want a directory in my home dir to be readable/writeable to a
apache(user)/apache(group), how to do that?
Like this directory
drwxrwxr-x 11 jj jj 16384 Jul 29 15:29 test
If I chmod g+rx, it's only readable/writeable to my own group, not to the
specefic apache user, how can I do that?
k**********g
发帖数: 989
2

不是拆解,而是让对象按照其特性实现多於一个介面。
For example, if there is a Writeable and Readable interface, then each
implementation X can choose from these combinations:
(1) X implements Writeable
(2) X implements Readable
(3) X implements Writeable, Readable
The main difficulty solved by this design pattern:
In some standard library designs, Writeable must imply Readable, because the
designer has chosen to make Writeable inherit from Readable. This
assumption may fail for some use-cases, for which the standard lib... 阅读全帖
b*****c
发帖数: 54
3
来自主题: Hardware版 - Pogoplug E02: arch or debian?
make sure you enabled 'writeable' for your HDD
smb.conf
...
[yoursharename]
comment = blahblah
path = /mnt/yourshare
browseable = yes
writeable = yes
valid users = username
...

.
I
c****p
发帖数: 6474
4
来自主题: JobHunting版 - 问个C的基本问题
现在data segment还分read only和writeable么。。。
我学汇编的时候data segment里的东西全是可读写的。。
我上学期给学生带32位MIPS汇编的时候,见过把只读变量放在text segment的样例。

the
data
S**I
发帖数: 15689
5
来自主题: JobHunting版 - [合集] 问个C的基本问题
☆─────────────────────────────────────☆
honeydream (pretty) 于 (Fri May 6 00:30:21 2011, 美东) 提到:
下面这个程序为啥会segmentation fault呢?
int main(void)
{
char *p1, *p2;
*p1 = 'a';
*p2 = 'b';
printf("%c %c\n", *p1, *p2);
return 0;
}
如果我不用指针,把p1,p2的星号都去掉,就可以输出正确结果。
☆─────────────────────────────────────☆
chenpp (chenpp) 于 (Fri May 6 00:31:43 2011, 美东) 提到:
p1和p2浮空,指向未定义的地址空间。
对未定义的地址空间进行读写操作会导致未定义的行为,包括段错。

☆─────────────────────────────────────☆
mercuriusl (Mercurius) 于 (Fri May 6 ... 阅读全帖
q**1
发帖数: 193
6
来自主题: BuildingWeb版 - Question about Apache & permission
can you print out this "$path" to the web and see if it prints
correctly? All my files under /etc are not writeable, and failed
with the is_writeable($file) test, but they can all be on the web
properly. BTW, is the $path from your URL?? like
http://example.com/path
only in this case, I think you need to prepend 'DOCUMENT_ROOT'
right?? :-)

absolu
,
d*******2
发帖数: 340
7
原文安装说明说访问Visit the store homepage e.g. http://www.example.com or http://www.example.com/store/,但实际上是安装到根目录下,根本没有store这个文件夹。访问http://www.mydomain.com的话,还是网站之前的样子,没有看到opencart安装页。先谢了!
These instructions are for a manual installation using FTP, cPanel or other
web hosting Control Panel.
- Linux Install -
1. Upload all of the files and folders to your server from the "Upload"
folder, place them in your web root. The web root is different on some
servers, cPanel it should be public_html/ and on Plesk... 阅读全帖
t***s
发帖数: 48
8
俺99年注册的ID两年多不用不好使了。临时搞了个马甲上来。大佬轻拍。
前两天手痒,改dockstar,按这个tutorial:http://www.rudiswiki.de/wiki/DockStarOverview
backup肯定是有了。在一个80G的usb硬盘上。
到了这一步:
-bash-3.2# killall hbwd # stop the Pogoplug software
-bash-3.2# mount -o remount,rw / # make flash ROM writeable, last part
reads "rw SPACE slash"
-bash-3.2# chmod go+w /dev/null # fix a bug
-bash-3.2# vi /etc/init.d/rcS # edit start script
-bash-3.2# mount -o remount,ro / # make flash readonly, last part reads "ro
SPACE slash"
-bash-3.2... 阅读全帖
L*********x
发帖数: 2191
9
来自主题: Hardware版 - 还是linux的基本问题,求指教
我的系统有sda sdb两个硬盘,系统在sda1上。
设置transmission的时候,设的下载目录是 /home/Downloads, 那么默认就应该是利用
系统sda1盘的空间了。这样其实挺危险,万一root满了就麻烦了。
我想mount sdb1 /home/Downloads, 然后如果用transmission下载,用的就应该是
sdb1的空间了.
可是这样的话,我不能每次开transmission前都先手动mount一遍。
我应该在哪个配置文件里加上mount那句?
刚开始学linux,多谢指点。
第二个问题,我还开了samba.
smb.prof 里
[Downloads]
path = /home/Downloads
browsable = yes
read only = no
writeable = yes
可是,我在mac下用go smb server之后,看到的目录都是空的,这是怎么回事?
l*******e
发帖数: 3584
10
来自主题: Hardware版 - 还有人用dockstar+debian的吗?
我就想共享一些照片什么的,
谁来给讲讲我哪里错了。
Preparing directories and users

Create directories for Samba to use with Windows

#mkdir samba

Now we need to create users to access this directiory
#useradd pcguest
Now create a password for this user

#smbpasswd -a pcguest
root@debian:~# smbpasswd -a pcguest
New SMB password:
Retype new SMB password:
Added user pcguest.

configure samba configuration file
... 阅读全帖
s*****a
发帖数: 1269
11
来自主题: Hardware版 - Pogoplug E02: arch or debian?
I made sure it's writeable... The only thing that's different is that I
mounted the HDD under /mnt, instead of creating a directory under /mnt and
mount the HDD there. Does that make a difference?
a*******e
发帖数: 3021
12
来自主题: Linux版 - samba force file permission
以前问过怎么让samba自动设置从windows share来的文件的属性的问题
最近有空google了一下,samba自带的mask就可以
samba缺省得属性设置好像是rwxr-xr-x
如果要让建立的文件是rw-------就用下面的例子
另外还可以force user, force group
[data]
path = /home/samba/data
browseable = yes
guest ok = yes
writeable = yes
create mask = 600
directory mask = 700
force user = joe
force group = accounting
l*******e
发帖数: 3584
13
I did search and tried, but looks like none of them work.
At the beginning, I still can see the Samba share folder from PC vista,
but after I change the smb.conf, it is totally out of service.
Here it is:
[global]
workgroup = workgroup_liu
netbios name = debianserver
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
load printers =no
[SAMBA]
path=/home/pcguest
read only = no
browseable=yes
writeable=yes
public = yes
valid users = pcguest
admin u... 阅读全帖
l*******e
发帖数: 3584
14
It is under sudo condition
When I checked all the step I did before, I noticed that I did restart
samba one just I installed it with the conf like this
[global]
workgroup = debian
netbios name = debianserver
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0

[SAMBA]

path=/samba
browseable=yes
writeable=yes
valid users = pcguest
admin users = debain
Fellow is what I got when I run restart.
root@debian:~# /etc/init.d/samba resta... 阅读全帖
i**p
发帖数: 8
15
来自主题: Programming版 - php写文件的奇怪错误
代码这样:
if (is_writable("test.txt"))
{
echo "writeable";
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
}
else
{
echo "we cannot write";
}
?>
结果是:
writable0
文件为何没有写入呢?硬盘上文件已经创建成功,大小为0。
c******y
发帖数: 37
16
来自主题: Unix版 - 粗浅一问: UNIX Security model
Unix有很多种,不过大部分都会有这种功能的了,
叫做Access Control List (ACL),这个东西一般
都存储在文件系统里面:
For,
1) Solaris: setfacl/getfacl
2) AIX: acledit
3) HP-UX: swacl
4) Linux: setfacl/getfacl
i.e. on solaris:
to set a file f.txt to
a) be readable/writable/excutable by the file owner
and the file group owner
b) be readable/writeable by the user buddy
c) be readable by the group manager
d) be unaccessible by all others
# setfacl -s user::rwx user:buddy:rw- group::rwx \
group:manager:r-- others::--- /dir/to/
w*******y
发帖数: 60932
17
Link:
http://www.bdlot.com/dvd-clone/giveaway.htm
more info on the product- Link:
http://www.bdlot.com/dvd-clone/


quote



Create Your Own Perfect DVD Backups of Raw Content with Ease
Remove All Known DVD Protections
Clone Entire DVD to Blank DVD
Backup Full Content of DVD to Hard Drive or USB
Backup DVD Main Movie to Save More Space
Burn to Blank DVD in an Easy and Fast Way
Flexible Virtual DVD Drive Simplifies Your Work
Supported DVD Copy Protection:
1. Reg... 阅读全帖
(共0页)