I have deleted an user in my linux OS(Ubuntu 19.10) ,But I have to delete the files and also copy some files into my user , But my I can't get access . How could I get access to delete and copy files??? PLEASSSE TELL ME. But files are not deleted....
4166
Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.
93679
I just tried to access a folder like so:  \\somecomputeronmynetwork\somelocation$   When going to this location I'm prompted for a user name and password.  I put one in, and it let me in fine.  Now I need to remove that login, so I can try a different user name and password.  What's the easiest way to do this?
112722
Is it possible for a user to have a write access to a file and not be able to read it? How is it possible?   I tried the following commands:  debianbox@debian:~/posix/io$ touch filetest debianbox@debian:~/posix/io$ ls -l filetest -rw-r--r-- 1 debianbox debianbox 0 14 oct.  03:10 filetest  debianbox@debian:~/posix/io$ echo "Hello World" &gt; filetest debianbox@debian:~/posix/io$ cat filetest Hello World  debianbox@debian:~/posix/io$ chmod u-r filetest debianbox@debian:~/posix/io$ cat filetest cat: filetest: Permission forbidden  debianbox@debian:~/posix/io$   As you can see here, I have write but not read access on this file. How can this be possible? Is this considered as a bug? If not, in what situation would this be useful?
113493
Is there a way to make a file readonly permanently in linux. Or can I put a password to a file to make it readonly, then apply that password again to change its permission, or before they can alter it.
122773
Files disappeared from my computer. On running a system search, they were found in C:\found.001\disk0001.chk  I want to go in there and have a look, if there are other files there too, but it gives me an access denied message. I ran chkdsk but it said no problems.   Ideally I would want to run a recovery utility (not the ones for deleted files) that would restore them all to the respective locations. Though I am lucky, I still have them at this weird place.   I am on windows 7.
15105
I have some files/directories on an external hard drive connected using USB to my Windows XP laptop. I am trying to delete those files but every time I try, I get an error "Cannot delete ....: Access Denied. Make sure disk is not full or write protected and that the file is not currently in use".  I checked that the directory is not is use. However, the permissions are set to read-only. Even if I remove the "read-only" checkbox, in Properties->Attributes, it automatically comes back again. How do I fix this? Is it a virus that is automatically changing it back to read-only?  regards,  JP
7304
From the post  I understand that rm just needs write permission on directory to remove the file. But I find it hard to digest the behaviour where we can easily delete a file who owner and group different.  I tried the following  mtk : my username abc : created a new user  $ ls -l file -rw-rw-r-- 1 mtk mtk       0 Aug 31 15:40 file $ sudo chown abc file $ sudo chgrp abc file $ ls -l file -rw-rw-r-- 1 abc abc       0 Aug 31 15:40 file $ rm file $ ls -l file &lt;deleted&gt;   I was thinking this shouldn't have been allowed. A user should be able to delete only files under his ownership? Can someone shed light on why this is permitted? and what is the way to avoid this? I can think only restricting the write permission of the parent directory to dis-allow surprised deletes of file.
8780
This is a  about File Permission and Why 777 is "destructive".   I'm not asking how to fix this problem, as there are a ton of references of that already on Server Fault (reinstall OS). Why does it do anything destructive at all?  If you've ever ran this command you pretty much immediately destroy your operating system. I'm not clear why removing restrictions has any impact on existing processes. For example, if I don't have read access to something and after a quick mistype in the terminal suddenly I now have access well... why does that cause Linux to break?
75470
I accidentally moved all folders from root to a subfolder. (/bin, /etc, /home, /lib, /usr... all moved) The only ones that were not moved, since they were in use, are  /bak, /boot, /dev, /proc, /sys.  Now, any command that I try to execute will simply not happen. I constantly get "No such file or directory".  I am connected through ssh and through ftp, but I cannot move files through ftp, as direct SU login is disabled. I also have access to the actual server if I need to do something directly from there.  I'm assuming I would need to edit a configuration file in order to tell it where to find the /bin folder and that would help me get access again, but I don't know which file that would be or how to do it (since I can't even run chmod to change permissions).  Is there any way out of this other than re-installing?  I am working on an old version of CentOS.  I'm extremely new to the world of Linux, hence this action and the question...
59143
Whenever I open my documents, all the folders in it are displayed with a lock icon. Therefore, I cannot delete any file or folder in it.  I tried changing the root access using sudo chmod user:directory/  but it fails. I am not able to delete or perform any file action with it.  What action should I perform to fix it?
97551
I have used deluser without the parameter --remove-all-files:  $ deluser 'user'   Is there a way other than rm -r /home/user to remove all files owned by a user now (since I have already executed deluser)?
82906
I am root. I would like to know whether a non-root user has write access to some files - thousands of them. How to do it efficiently while avoiding process creation?
79962
I tried finding this on here, but couldn't so sorry if it's a duplicate.  Say I have 2 groups and a user: group1, group2, user1 with the following structure: group1 is a member of group 2, user1 is a member of group1  Now say I have the following files with relevant permissions  file1 root:group1 660 file2 root:group2 660   Now when I log into user1, I'm able to edit file1, but not edit file2. Short of adding user1 to group2, is there any way of doing this? or is there no way?  I'm using Ubuntu btw.
8111
Can a Linux user belong to more than one group?  If it is allowed, then one use may access files from two groups, that would be quite nice!  If not, is there any alternative way to have this function?  This issue is not the same as  or
39006
By accident, I used rm on a file I didn't want to delete. Is there a way that I can get it back under Linux?
75016
The folder is massive (390GB) and contains many different files. The file system is ext4  I was about to copy this file to another hard drive using gksudo nautilus so I didnt have do a massive chmod operation on the destination hard drive, but then I accidentally hit move to trash, which in gksudo nautilus means permanent deletion. I checked the trash but it's not even an operation...  I have seen tools like testdisk and other recovery tools but none that can recover and whole folder because its made up of different files.   I don't think that this would work but if I deleted the partition could I just recover the whole partition at once?  Or would this be wrong because i have already deleted the partition's content? This is my first job in Linux IT.  I don't have a backup... I was trying to make one because the old backup drive died :(
11360
I'm sick of accidentally deleting files and directories as DEL button is badly located on my keyboard. I would really like it if ubuntu asked me to confirm before deleting anything. Is there a way to do this?