NutzCN Logo
问答 上传图片后permission denied
发布于 2923天前 作者 lambert 2875 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

大神,上传图片时,会指我的文件没有权限,如下:

Caused by: org.nutz.mvc.upload.UploadException: java.io.FileNotFoundException: /opt/jetty/webapps/sales/tmp/00/00/00/00/00/00/00/84.jpg (Permission denied)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:16)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:923)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:157)
	at org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:221)
	at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:165)
	... 40 more
Caused by: java.io.FileNotFoundException: /opt/jetty/webapps/sales/tmp/00/00/00/00/00/00/00/84.jpg (Permission denied)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:171)
	at org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:160)
15 回复

先检查父文件夹是否够权限

我对这下面的每个都执行了权限命令,这样不行

chmod 757 /opt/jetty/webapps/sales/tmp/
[root@wwxd3 ~]# chmod 757 /opt/jetty/webapps/sales/tmp/00/
[root@wwxd3 ~]# chmod 757 /opt/jetty/webapps/sales/tmp/00/00/
[root@wwxd3 ~]# chmod 757 /opt/jetty/webapps/sales/tmp/00/00/00/
[root@wwxd3 ~]# chmod 757 /opt/jetty/webapps/sales/tmp/00/00/00/00/
[root@wwxd3 ~]# chmod 757 /opt/jetty/webapps/sales/tmp/00/00/00/00/00/
[root@wwxd3 ~]# chmod 757 /opt/jetty/webapps/sales/tmp/00/00/00/00/00/00/

@qq_ce28126d 运行jetty的是什么用户?root吗?

是的,我每次都是用root进行net jetty start的,好奇怪呢

@qq_ce28126d dmsg看看

感觉好长啊,神你咋看到关键内容啊?

[    5.495198]  sda: sda1
[    5.496092] sd 2:0:0:0: [sda] Attached SCSI disk
[    5.513314] sd 3:0:1:0: [sdb] 4096-byte physical blocks
[    5.516130] sd 3:0:1:0: [sdb] Write Protect is off
[    5.518580] sd 3:0:1:0: [sdb] Mode Sense: 0f 00 10 00
[    5.518713] sd 3:0:1:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[    5.522952]  sdb: sdb1 sdb2
[    5.525227] sd 3:0:1:0: [sdb] Attached SCSI disk
[    5.585149]  sdc: unknown partition table
[    5.587979] sd 5:0:0:0: [sdc] Attached SCSI disk
[   22.513793] hv_netvsc vmbus_16: Send section size: 6144, Section count:2560
[   22.519812] hv_netvsc vmbus_16: Device MAC 00:17:fa:00:97:cd link state up
[   22.525103] input: Microsoft Vmbus HID-compliant Mouse as /devices/virtual/input/input4
[   22.529687] hid-generic 0006:045E:0621.0001: input: <UNKNOWN> HID v0.01 Mouse [Microsoft Vmbus HID-compliant Mouse] on 
[   22.582620] SGI XFS with ACLs, security attributes, no debug enabled
[   22.588162] XFS (sda1): Mounting V4 Filesystem
[   22.606524] XFS (sda1): Ending clean mount
[   22.874652] systemd-journald[260]: Received SIGTERM from PID 1 (systemd).
[   22.974577] type=1404 audit(1482457688.412:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[   23.098944] SELinux: 2048 avtab hash slots, 112414 rules.
[   23.112463] SELinux: 2048 avtab hash slots, 112414 rules.
[   23.138243] SELinux:  8 users, 105 roles, 4955 types, 303 bools, 1 sens, 1024 cats
[   23.138247] SELinux:  83 classes, 112414 rules
[   23.142038] SELinux:  Completing initialization.
[   23.142039] SELinux:  Setting up existing superblocks.
[   23.142044] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[   23.142047] SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
[   23.142054] SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
[   23.142057] SELinux: initialized (dev proc, type proc), uses genfs_contexts
[   23.142095] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   23.142106] SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
[   23.142499] SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
[   23.142502] SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
[   23.143509] SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
[   23.143513] SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
[   23.143515] SELinux: initialized (dev aio, type aio), not configured for labeling
[   23.143517] SELinux: initialized (dev devpts, type devpts), uses transition SIDs
[   23.143527] SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
[   23.143531] SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
[   23.143535] SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
[   23.143545] SELinux: initialized (dev securityfs, type securityfs), uses genfs_contexts
[   23.143548] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[   23.143797] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   23.143801] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   23.143847] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   23.143865] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143872] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts
[   23.143873] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143879] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143882] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143893] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143895] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143902] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143906] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143910] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143913] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[   23.143927] SELinux: initialized (dev configfs, type configfs), uses genfs_contexts
[   23.143932] SELinux: initialized (dev sda1, type xfs), uses xattr
[   23.151514] type=1403 audit(1482457688.589:3): policy loaded auid=4294967295 ses=4294967295
[   23.159832] systemd[1]: Successfully loaded SELinux policy in 186.463ms.
[   23.245364] ip_tables: (C) 2000-2006 Netfilter Core Team
[   23.248129] systemd[1]: Inserted module 'ip_tables'
[   23.270922] systemd[1]: Relabelled /dev and /run in 15.685ms.
[   23.603396] SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
[   23.634935] SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
[   23.734828] systemd-journald[502]: Received request to flush runtime journal from PID 1
[   23.921732] hv_utils: Registering HyperV Utility Driver
[   23.928656] hv_vmbus: registering driver hv_util
[   23.948335] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   23.951732] sd 3:0:1:0: Attached scsi generic sg1 type 0
[   23.953691] sd 5:0:0:0: Attached scsi generic sg2 type 0
[   23.956033] piix4_smbus 0000:00:07.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
[   23.968882] input: PC Speaker as /devices/platform/pcspkr/input/input5
[   24.003840] AES CTR mode by8 optimization enabled
[   24.011307] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[   24.054363] alg: No test for crc32 (crc32-pclmul)
[   24.074076] intel_rapl: no valid rapl domains found in package 0
[   24.088671] intel_rapl: no valid rapl domains found in package 0
[   24.107874] intel_rapl: no valid rapl domains found in package 0
[   24.119749] intel_rapl: no valid rapl domains found in package 0
[   24.182777] device-mapper: uevent: version 1.0.3
[   24.185328] device-mapper: ioctl: 4.33.0-ioctl (2015-8-18) initialised: dm-devel@redhat.com
[   24.413557] type=1305 audit(1481958135.730:4): audit_pid=627 old=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
[   24.496279] hv_utils: KVP: user-mode registering done.
[   28.441374] SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
[   28.528412] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[   28.845825]  sdb: sdb1 sdb2
[   28.912593]  sdb: sdb1 sdb2
[   29.062865] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   29.067336] SELinux: initialized (dev sdb1, type ext4), uses xattr
[   62.443027] Adjusting hyperv_clocksource more than 11% (1946204941 vs 1862270976)
[  323.707615] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 1090.250249] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 1690.283035] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 2290.308114] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 2890.331454] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 3490.354230] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 3550.374542] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 4090.410361] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 4690.434793] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 5290.457085] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 5890.479651] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 6490.503784] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 7090.529650] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 7150.555237] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 7690.589534] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 8290.615509] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 8890.637394] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 9490.659233] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[10090.681055] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[10690.703283] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[10750.724443] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[11290.757370] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[11890.780235] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[12490.803626] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[13090.828820] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[13690.853163] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[14290.877324] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[14350.898229] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[14890.929596] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[15490.952849] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[16090.975125] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[16690.998379] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[17291.021313] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[17891.043687] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[17951.064445] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[18491.095260] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[19091.118771] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[19691.141776] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[20290.164679] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[20890.187052] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[21490.214453] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[21550.235967] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[22090.268102] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[22690.292260] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[23290.314283] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[23890.336052] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[24490.359938] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[25090.383246] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[25150.404472] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[25690.433870] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[26290.455753] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[26890.478594] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[27490.501096] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[28090.523901] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[28690.548777] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[28750.570875] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[29290.599617] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[29890.620733] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[30490.643802] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[31090.667526] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[31690.688591] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[32290.709918] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[32350.730538] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[32890.760702] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[33490.782625] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[34090.805586] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[34690.828691] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[35290.851469] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[35890.874697] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[35950.896352] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[36490.928103] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[37090.950865] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[37690.972849] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[38290.994637] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[38891.015710] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[39491.038341] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[39551.058970] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[40091.088566] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[40691.112534] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[41291.135173] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[41890.157462] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[42490.179598] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[43090.203183] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[43150.224508] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[43690.256834] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[44290.280465] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[44890.306470] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[45490.328538] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[46090.353600] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[46690.379442] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[46750.404346] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[47290.435903] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[47890.459488] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[48490.483111] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[49090.511149] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[49690.535915] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[50290.560251] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[50350.581108] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[50890.612683] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[51490.634742] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[52090.659552] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[52690.682194] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[53290.704255] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[53890.726291] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[53950.747972] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[54490.779787] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[55090.801986] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[55690.824345] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[56290.851301] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[56890.872605] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[57490.894065] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[57550.914736] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[58090.944511] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[58690.966631] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[59290.991832] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[59891.013463] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[60491.038224] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[60671.061895] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[61091.123913] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[61151.143922] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[61690.184563] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[62290.209141] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[62890.232483] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[63490.259555] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[64090.286043] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[64690.309851] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[64750.341060] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[65290.377282] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[65890.404064] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[66490.431756] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[67090.458345] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[67690.482601] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[68290.503935] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[68350.523868] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[68890.560216] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[69490.584410] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[70090.613336] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[70690.638945] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[71290.664423] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[71890.688442] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[71950.709600] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[73090.772004] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[73690.803400] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[74290.827661] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[74890.853790] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[75490.875492] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[75550.896241] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[76090.928568] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[76204.651239] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[104692.926224] blk_update_request: I/O error, dev fd0, sector 0
[105282.788243] blk_update_request: I/O error, dev fd0, sector 0
[163691.131281] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[164290.158945] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[164890.184085] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[165490.208687] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[165550.228859] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[166090.262101] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[166690.285403] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[167290.307939] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[167890.329728] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[168490.353021] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[168797.627047] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[327783.876587] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs

@qq_ce28126d 把SELinux关掉,具体方法找谷歌

我用系统的另外一个帐户去访问的时候,我看到文件夹的权限是755这不是也正常的吗?为啥会出现这个事呢?

我把它调成permissive,问题依旧呢,一定要关闭才行吗?

大神,我把selinux关闭了,可是还是不能正常上传,这是咋回事呢?

@wendal 我确认我是用root进行启动jetty的,不可能是别的

在启动时,用主动创建几个文件看看报啥

有一种可能性是要建文件夹的路径变成了文件,导致没法建文件夹

@wendal 收到,我一会试试在启动的时候创建一下文件试试

我上传后,直接报异常,而异常还是Permission denied。。。。这个是catch出来的,太奇怪了

启动时已经加了测试代码??

添加回复
请先登陆
回到顶部