You are not logged in.
Pages: 1
Hello, I just switched from Ubuntu to Arch. I remember the last time I used CellWriter, it randomly started having a glitch where it couldn't save (or perhaps just couldn't read from) its settings file, ~/.cellwriter/profile. I thought, maybe things will be different now, so I'm trying to use it again, but before I do that I want to delete that profile file in case there was something wrong with it. Trouble is, I just learned that the ~/.cellwriter directory's permissions are 555 somehow. (It's the same home folder I had in Ubuntu).
There are no chattr attributes in the way, and I've tried sudo, su, root, and even single user mode. That folder and its files simply refuse to be chmodded, chowned, or removed. Well, actually, I can chown profile for some reason, but I can't do anything else to it, and I certainly can't chown the directory.
In case it's helpful/relevant information, the folder has a fifo pipe in it that I'm not able to read or write to in any way, chattr or otherwise (I don't know why; perhaps CellWriter needs one).
Last edited by Cadeyrn (2013-04-06 18:49:11)
Offline
Can you give ls -al ~/.cellwriter so people can see exactly what is going on? Also, when you try this as single user/root etc., are you still using ~ (i.e. root's home) or are you using /home/<your-username>?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I was using /home/<username>.
$ ls -al ~/.cellwriter
total 20
dr-xr-xr-x 2 jimi jimi 4096 Mar 16 2012 .
drwxr-xr-x 157 jimi jimi 12288 Apr 6 11:56 ..
prw------- 1 jimi jimi 0 Mar 16 2012 fifo
-rwxr-xr-x 1 jimi jimi 604 Aug 20 2012 profileOffline
Can you give the exact commands you are using and any output you get? (Errors etc.) If no errors are printed, try echo $? immediately after the command to at least get the exit code.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
$ chown root:root ~/.cellwriter
chown: changing ownership of ‘/home/jimi/.cellwriter’: Operation not permitted
$ chmod +w ~/.cellwriter
chmod: changing permissions of ‘/home/jimi/.cellwriter’: Operation not permitted
$ rm -rf ~/.cellwriter
rm: cannot remove ‘/home/jimi/.cellwriter/profile’: Permission denied
rm: cannot remove ‘/home/jimi/.cellwriter/fifo’: Permission denied
$ lsattr ~/.cellwriter
s------------e-- /home/jimi/.cellwriter/profile
lsattr: Operation not supported While reading flags on /home/jimi/.cellwriter/fifoNote that the results are the same when I'm su'd, using sudo, logged in as root, in single user mode, or any combination of those four things, and instead of ~/.cellwriter I type /home/<username>/.cellwriter when I'm not logged in as my normal account.
Offline
I wouldn't expect it to work as your ordinary user.
What partition is the directory on and what mount options are you using for it in fstab?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
/home is on on /dev/sda6. Here's the fstab line that I generated following the wiki for installing Arch:
# /dev/sda6 LABEL=/home
UUID=22f056cd-49dd-4851-80fd-003705563fce /home ext4 rw,relatime,data=ordered 0 2Offline
Can you unset the secure deletion flag on it? I don't really know anything about this - just read the manual pages a bit. Unless, of course, you don't want to do that for privacy reasons.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Those two flags were set by accident when I was messing around with chattr trying to make it deletable. It just so happens I have tried removing the s flag, and that didn't change anything. I don't know why it's back on, as I didn't add it again.
Offline
Well? Any help? At this point, I'd be willing to resort to somehow zeroing the bits that store the .cellwriter directory, if that's possible, or compiling a new Arch Linux CellWriter package that stores the settings in a different directory, but I don't know how to do either of those things. I'd rather not have to reformat the partition.
Last edited by Cadeyrn (2013-04-10 04:30:27)
Offline
Pages: 1