I have been learning Linux from few days, and now I was trying to learn the advanced file permissions like setting UID, GID and sticky bit.
At root I have first changed the ownership of directory to Pavan and g1 group, then, done this:
[root@localhost sdcdir]# ll
total 20
drwx------. 2 root root 16384 Mar 21 21:38 lost+found
drw-r----T.
Feel silly asking this question, but can't seem to change directory to Windows XP IE7.
Hey all!
I want to grep -i "^d" (files that start with d) but I want to see the permissions...
obviously if you do ls -al you get
Code:
drwxr-xr-x. 2 brian brian 4096 Nov 12 17:55 Desktop
drwxr-xr-x. 2 brian brian 4096 Nov 12 17:55 Documents
drwxr-xr-x. 2 brian brian 4096 Nov 27 11:44 Downloads
-rw-------. 1 brian brian &n
Here is the ls -l after I did rm -f inside the cur and new directories.
I expected the directory "sizes" to shrink back to the default "4096".
I have a directory in ubuntu. I need to have it look like the below.
drwx------ 2 mysql root 4096 Feb 4 15:18 mysql
Right now it is
drwx------ 2 root root
Is this a chown command?
I am trying to move the data directory for mysql to /data/my
I've run into a perplexing problem where user permissions are not being respected on a Linux computer. Other users are able to move and delete files they don't own. Is there a way to restrict this? Why is this happening? Here's an example.
# Become user jen
[root@localhost test]# su jen
# Display files in the current directory
[jen@localhost test]$ ls -al
total 24
drwxrwxrwx.
I have created a virtual machine and installed Redhat 6. I am having issues connecting using public key authentication.
I can use PuTTY on my Windows host to connect to the redhat guest, where I am prompted for a password.
My friend did a chmod -R 777 /var by mistake.
This is in a continuation of question here
I run this command as root user
chown someuser:someuser /mnt/my-address
and then
# ls -l /mnt/my-address
response is
total 16
drwx------ 2 root root 16384 Aug 16 11:04 lost+found
but when i do
stat /mnt/my-address
and response is
File: `/mnt/my-address'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: ca51h/51793