I made an ext3 partition but only the root has write permissions. I've got a lot of stuff to copy over so want to temporarily give my normal user write privileges and then change it back to read only once I'm done. The partition is /dev/sdc5. Not quite sure how to do this.
EDIT: on a side note, on F17 is it possible to log into the GUI as root (eg start an XFCE session as root)?
I have many file permission problems, as being a newbie, I unfortunately set permissions on everything somehow to 777 (chmod -R 777 /). I believe I've done this from the root directory logged in as the root and now can't really do much at all but log in as another user.
I need to mainly change the ssh permissions, but obviously can't because it won't let me log in as the root user.
Is there a command that allows a user to temporarily have root permissions but files and directories created by the user still reflects the user rather than root?
For example, I have a user that needs to install some software (Glassfish), but the self-extracting installer returns an error "permission denied".
If user logs into a machine via SFTP, one can make use of ChrootDirectory keyword to give an illusion that user is in a root directory. But that directory is only writable by root user.
I have a basic linux server setup (setup locally on my network with no outside access) and i wanted to FTP files to the /var/www directory.
I have installed vsftpd and i have access to the server via FTP on another machine.
The problem i am having is the permissions on the directories and files uploaded are no the same as root, although i have setup a user with the admin user group which has root
root user can write to a file even if its write permissions are not set.
root user can read a file even if its read permissions are not set.
root user cannot execute a file when its execute permissions are not set.
Why?
user$ echo '#!'$(which bash) > file
user$ chmod 000 file
user$ ls -l file
---------- 1 user user 12 Jul 17 11:11 file
user$ cat file # Normal user canno
I'm running sabnzbd on my laptop, under systemd. I'm also running it as my own user, rather than the sabnzbd user. In order to do this, I need to be able to write a pidfile within /run/sabnzbd/. The permissions on this directory are 0755, and it is owned by sabnzbd:sabnzbd. So, I need the permissions to be 0775, so that my user (in the sabnzbd group) can write to this directory.
I'm sure I'm missing something quite basic here, but I'm running Ubuntu through Virtual Box on my Mac, and so I need to give my Ubuntu user read/write access to the folder shared by the host and guest systems (named sf_VB_Shared_Folder).
I am running 12.04 x64 server on ext4 disk. There are two user groups 'A' and 'B'. For a specific directory, I would like to give its all permissions to user group 'A'. Also I would like to give only 'write' permission to user group 'B'.