New answers tagged

0

You can log in as root user: sudo su And then you are able to do: cd apache2


0

The "force create mode" and "force directory mode" parameters force Samba to create new files and folders with the set permissions. And you have to make sure that these folders are owned by the correct user. Once you have created these folders they might already have the wrong permissions. Here is the official samba doc. https://wiki.samba.org/index.php/...


1

I had this permissions issue when running VM's from a thumb drive. The problem I was having was that my system (Fedora 27) automatically mounts new drives (external HDDs, USB, SD) to /run/media/(username)/(device name) (on your system it's /media/username/....) For whatever reason this causes the permissions issue. By default it was mounted with fmask=...


0

This may be related. How to install python from source on a remote machine without root access. Installing Python 3.6 (works with any version per say) Get the official download link from python.org website(Example. https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz) Download the python source release and get the folder readied for installation from ...


0

In my case, nothing worked - and simply reinstalling virtual box guest additions did the job. I wish I had tried it earlier.


1

The "exec" option must be used to execute commands on a mounted disk volume.


1

Fixing your system's permissions is gonna be something tough. you have two options: reinstall all packages in your system or reinstall it from scratch, backing up your data. Personally, I'd go with the second option. First, check where PostgreSQL is storing your databases with: sudo cat /etc/postgresql/{version}/main/postgresql.conf | grep data_directory (...


0

OK. You've answered my questions. The point about labeling partitions is that you can see at a glance what partition contains what information. In your example you have 2 NTFS drives both labelled with the same description - Basic data partition, which is confusing. What I suggest is that you label sda4, Win10. Then you know it's your C:\ drive. If sda1 is a ...


1

I entered the username/password of my Ubuntu user Unlike Windows where there is just the one user in Linux there are two. One for local logins and the other for samba. You need to add the local user ( mark for example ) to the samba password database: sudo smbpasswd -a mark


0

I have resolved mine by modifying the /etc/postfix/main.cf file. It seems like my hostname was not set correctly. I figured this out by looking a line : myhostname = localhost.localdomain . It should have been modified when i configured postfix but it didn't so, i modified it manually. The process : 1 - type : sudo nano /etc/postfix/main.cf 2 - Change ...


0

In my case this was caused by me creating a file ~/.config/pulse/default.pa. The bulletproof solution to fix my sound settings issue was removing the directory with my pulseaudio preferences: rm -rf ~/.config/pulse/


0

ajgringo619 corrected your sytax. The only thing remaining is to take possession of the mounted share with a uid=user: sudo mount -t cifs -o rw,user=user,uid=user //ServerIP/share /home/user/documents/share The user in user=user is the user name you pass to the server as credentials. The user in uid=user is the user name on the client that is mounting the ...


0

OK, I got it back up and running. I've now tried again with 751 instead of 750 and it appears to work. I guess the 0 made all the libraries blind to the currently logged in user, since that folder is owned by root:root and I'm not a member of root. Sudo (etc) depends on the libraries and there was no executable bit. 751 sets executable to the world, so ...


0

I ran the command sudo chown -R root:root /opt/popcorntime The 'simple' user can now play medias in Popcorn Time.


2

who is the user 999? Is it just custom to him or a code used universally? In Ubuntu and the Ubuntu family flavours, the numeric user ID in live sessions is 999. (The literal user ID is ubuntu, kubuntu, lubuntu ... xubuntu but in all these cases the numeric user ID is 999.) When you boot from a USB drive, 'Try Ubuntu', you boot into a live session. You ...


0

As specify in chown man chown - change file owner and group This manual page documents the GNU version of chown. chown changes the user and/or group ownership of each given file. If only an owner (a user name or numeric user ID) is given, that user is made the owner of each given file, and the files' group is not changed. It ...


0

Answer If Dropbox finds files in its folder that aren't owned by your user, it will try to run a script with super user privileges to change the ownership of those files to your user. If you click Cancel, Dropbox won't run the script but you'll continue to get the popup because it will continue to detect the problem. If you're able to confirm it is ...


0

The issue was that the current folder was not owned by www-data. So be sure that the the owner is the same as the apache user(www-data or daemon)


2

I tried a sort of "Windows solution", but instead of switching off and on again, I un-installed and re-installed it, and the problem has gone! I'll still avoid Snaps wherever possible though..


0

That depends highly on what you are trying to do. For example, the default user running the Apache Web Server is www-data. If you want a script being run by Apache Server to read-access a file that it does not have read access, you can use the following command: setfacl -m u:www-data:r /path/to/file To give write access the another file for example use: ...


6

You have to add execution bit for the desktop file: cd ~/Desktop chmod a+x myapp.desktop and mark it as trusted with gio set myapp.desktop metadata::trusted yes and then press F5 to reload the desktop icons.


2

[1] You stated you asked this question in the Ubuntu forums. If you could provide a link it would help since I cannot find it. [2] What is missing from your question is how you are currently set up. It is difficult to offer a definitive answer without seeing what you shared, what filesystem is being used, etc ... Posting the output of the followings ...


0

Why don't you do a: chown don.www-data html Or: chown www-data.users html adduser don users


0

SHORT In my case, with pretty same configuration, problem was that the newly created user didn't had it's own /home/{username} directory LONG In vsftpd.conf, I had that lines: ... user_sub_token=$USER local_root=/var/www/$USER ... Not sure, but, it looks like vsftpd tries to log user into user's /home directory first, then on success it does chroot() to ...


0

Rather than copying the files with the cp command, i just granted permissions in the directory using sudo chmod -R 777 htdocs. Thanks all for the suggestions and help.


0

you can copy a directory located e.g. in your Home Directory to /opt/lampp/htdocs this way. Let the folder be test. sudo cp ~/test /opt/lampp/htdocs You can remove it by sudo rm -r /opt/lampp/htdocs/test


0

Have you tried to the files with 'sudo cp files directory' rather than to try to change the directory's permissions? Or, if you're going to be copying multiple files one at a time, you can use 'sudo su' login as root, then you don't have to type the sudo each time.


0

Try running sudo -i After that, try gunzip -c again.


0

I have the workaround at least on Fedora 31: sudo vi /etc/profile.d/umask.sh umask <your_umask> sudo vi /etc/login.defs UMASK <your_umask> sudo vi /usr/local/bin/systemd-user /usr/lib/systemd/systemd --user sudo chmod a+x /usr/local/bin/systemd-user sudo vi /usr/lib/systemd/system/user@.service ExecStart=-/usr/local/bin/systemd-user


0

For a start it is a huge risk to run a server as root, better you create another system-user for your project using useradd -r -U -s /usr/bin/nologin http. This creates a new system-user called http and creates a http group. You can then use chown -R :http /root/myproject/ to change the owning group to http. If your nginx.conf contains the statement user ...


0

I got same message with fresh installed Ubuntu 18.04 and 19.10. It's probably because you need privileges to execute systemctl hibernate. To solve it, I did: sudo visudo /etc/sudoers.d/hibernate and added following line: %adm ALL=NOPASSWD: /bin/systemctl hibernate, /usr/bin/systemctl hibernate Note: My user is member of group adm. ...


0

Is there a way to make it work from php? Not really. How copy ssh key to authorized_keys using php shell_exec? We do things like this in 2 steps: Have PHP store the key into a file on the server. Have a cron script pick up the file with then key and do the update. The cron script runs as root so is capable of doing the update.


1

Detailed explanation can be found at http://manpages.ubuntu.com/manpages/man7/inode.7.html The mask 0100000 means that this is a regular file: S_IFREG


0

Ok I solved it. Turns out I've set the permissions correctly for the authorized_keys files and the home dir of the user. However the owner was root:sftponly


0

For mi work this. There're some post but not work fine with scenario of your question On Host create shared folder XXXX form local path /xxx/xxx/ full access NOT automount and mount in /virtual/mount/folder sudo chmod -aG vboxsf yourusername Read you userid usually 1000 cat /etc/passwd|grep yourusername Add to /etc/fstab mount point sharedname_on_host /xxx/...


7

/usr/share/applications The permissions for -all- files in there is: -rw-r--r-- 1 root root So ... chown root:root /usr/share/applications/ chmod 644 /usr/share/applications/ will restore it to default (I added both command just in case someone else ends up here looking for it but all you need is the chmod). There are no directories in /usr/share/...


1

I ran into the same problem today, using Ubuntu Studio 18 and Thunar 1.6.15, but what I found out is that Thunar 1.6.15 seems to be affected by a bug in glib. This bug is said to be fixed in glib-2.55 (see here). However, to my understanding it seems that the fixed glib is not implemented in Thunar 1.6.15, but in v. 1.8.3, which is not available in Studio ...


0

/var/log/cron.log is obsolete, since cron logs via syslog. Did you install a non-standard cron? See if any process has /var/log/cron.log open with sudo lsof /var/log/cron.log This should show no processes, E.g.: walt@bat:~(0)$ sudo lsof /var/log/backupninja.log lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output ...


0

As describe on npm documentation you can: Back up your computer. On the command line, in your home directory, create a directory for global installations: mkdir ~/.npm-global Configure npm to use the new directory path: npm config set prefix '~/.npm-global' In your preferred text editor, open or create a ~/.profile file and add this line: export PATH=~/....


2

you can see like that cat /etc/apt/sources.list


5

/etc/apt/sources.list is a path to a file named sources.list that is owned by root. It does not have permissions to opened by its default application which is Software & Updates. To do this it would be necessary for sources.list to have permissions to be executed as a program which it does not have. To show the contents of /etc/apt/sources.list in the ...


1

Care to share your [global] part of your smb.conf ? This would confirm if you are running a PDC or an AD DC and if you have added any lines you shouldn't have. If it is an AD DC, then your share should just be this: [Data] comment = Data path = /srv/data read only = no You then set the ACLs from Windows. NOTE: We do not recommend using a Samba AD DC as a ...


1

According to snapcraft sudo snap connect musescore:removable-media :removable-media


0

On my working 16.04.6: walt@bat:~(0)$ ll -d /proc /sys dr-xr-xr-x 309 root root 0 Jan 1 23:15 /proc dr-xr-xr-x 13 root root 0 Jan 1 23:15 /sys Depending on how you copied them, they MAY have kept the root:root ownership, and probably did preserve the dr-xr-xr-x permissions. So, to delete the copies, you'll have to: sudo rm -rfv subdirectory/{proc,sys}


0

So if i understand you correct you have ran the ssh-keygen command on all 5 machines then they should all have id_rsa and id_rsa.pub in the current user's .ssh folder (ls ~/.ssh/). -rw-r--r-- 1 me me 403 Oct 3 2018 id_rsa.pub -rw------- 1 me me 1675 Oct 3 2018 id_rsa This means you have created a Private/Public key pair for that user, from this point ...


1

Because you have not configured your webserver to accept TLS traffic, commonly known as https. If we check the reply for the website, using curl -I we see that http://www.misources.com redirects to https://www.misources.com: $ curl -I www.misources.com HTTP/1.1 301 Moved Permanently Date: Tue, 31 Dec 2019 13:38:32 GMT Server: Apache/2.4.29 (Ubuntu) ...


1

You seem to have a misunderstanding about the public key you upload to the server. This key must be stored in the file ~/.ssh/authorized_keys for every user that should be identified by this key. So for now you could copy the key file with sudo cp ~ubuntu/.ssh/authoriyed_keys ~grader/.ssh then give the file the correct owner and permissions sudo chown ...


0

Run below command - which folder you require files to upload sudo chown -R <>:root <> example sudo chown -R myloginid:root /home/myproject


0

i suggest to make partition for personal files storage. in case you want to wipe ubuntu, you can do easily. if you really want to move files than move into home or your user name folder


0

This problem occurs very frequently when external pen drive have root permissions after format. You can copy files into external drive by using terminal with sudo permissions $sudo cp [OPTION]... SOURCE... DIRECTORY How to copy files via terminal Delete your partition and create new partition (format external device) by using Disks Disks Software ...


Top 50 recent answers are included