Tag Info

New answers tagged

0

My friend saw my message and helped me fix it by doing: chattr -sia /usr/bin/wget He suggested that I read man chattr to learn more about it. That enabled me to do the chmod.


1

You might have selinux enabled. Try getenforce If it shows "Enforcing", try setenforce 0 and try if this fixes your issue.


0

Solution 1: check group of ttyS0 and then assign it to your user,then relogin or su - user crw-rw---- 1 root dialout 4, 64 feb 28 18:23 /dev/ttyS0 usermod -aG dialout youruser su - youruser Solution 2: if you don't like the first solution edit /etc/udev/rules.d/50-tty.rules KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", ...


0

No sudo rights for your user can be caused due to multiple reasons. I suggest trying Naveen's answer first, but in some cases dropping to the root shell doesn't work (for instance, you get the message "Give root password for maintenance"). In the latter case, you should try booting an Ubuntu Live CD, and mount the partition that contains your Ubuntu ...


0

Drop into the root shell as described here. Change the root password by giving the command passwd root Change the passwords of the other users by the command passwd username


0

Not sure about the permissions but I have a mac and have had similar problems connecting to a windows share; after research the version of samba used in OSX is old and has some bugs. I cannot connect to this share by name although I can see it in finder. If I connect to the share via (Go -> Connect to Server) in the finder menu bar and enter the direct ...


0

This looks like a temporary file related to the "clean free disk space" option. The last time this was reported was two years ago, so it does not happen frequently. Also, it seems harmless (I am pretty sure the file does not exist now). If you would like to help identify the issue so it can be fixed, please see ...


6

Running a check on my system lists: $ sudo find / -xdev -type d \( \( -user nobody -o -group nogroup \) -o -perm -777 \) /tmp /tmp/.X11-unix /tmp/.ICE-unix /var/tmp /var/metrics /var/spool/samba /var/crash Of these, I imagine /tmp, /var/tmp, and /var/crash to be present on all Ubuntu installations, since they are listed in the Filesystem Hierarchy ...


0

Yes, you have to install WPS Office in Linux. Kingsoft Office free vesion, Kingsoft Office paid version, Kingsoft Office 2012, Kingsoft Office 2013, Kingsoft Office for Android, Kingsoft Office for Linux and Kingsoft Office for IOS has been changed in to WPS Office. WPS Office Free is perhaps the most versatile free office suite, which includes free word ...


1

Yes, install Kingsoft in Linux. You can open the file in there. If needed save the file as a txt or csv so you can open it in Libre Office and delete Kingsoft.


0

Ankit - this is a great idea and I think that you would accomplish a lot. Learning to use git would be a good first step as then you can collaborate on the code you write. Dreams and ideas drive everything related. the details have a way of working themselves out.


0

The ln -s command creates a link in /usr/local/bin/ that points to acpype.py in directory you are in. Changing anything in /usr/local/bin/ requires root privileges. You can execute a command with root privileges by putting sudo in front of it. So what this means in your case: instead of ln -s $PWD/acpype.py /usr/local/bin/acpype type sudo ln -s ...


5

A user may be a member of multiple groups. A file is be owned by exactly one group and one user. If the user is a member of the file's owner group (i.e., group foo owns the file and one of the user's groups is foo), then the respective group permissions apply to that user (unless overridden by the owner permissions). The owner group is part of the file's ...


0

Agree with lorem, but it's not enough. run Virtualbox 'as an admininstrator' on Windows. make sure you executed: VBoxManage.exe setextradata YOUR_VM BoxInternal2/SharedFoldersEnableSymlinksCreate/YOUR_SHARED_FOLDER 1 Replace the YOUR_VM and YOUR_SHARED_FOLDER with your values. You can check the value via: VBoxManage.exe getextradata boot2docker-vm ...


7

Add a shortcut to your launcher. I would not change the main command of the gedit launcher. Do the following: Never edit the default launcher, first copy the one from /usr/share/applications to ~/.local/share/applications: cp /usr/share/applications/gedit.desktop ~/.local/share/applications/gedit.desktop Edit the file with... gedit (not with gksudo) ...


0

Not sure why it would deny you access now that you have it mounted. What you can do is unmount it a mount it again with read/write permission. Something like sudo umount /media/DRIVE_NAME sudo mount -o rw,remount /dev/DISK_PARTITION /media/DRIVE_NAME In some cases I've noticed that even though I'm able to access the partition, see the files, and open ...


0

You can modify the owner by opening a terminal up and typing in `chown user /path/to/file like Byte Commander stated you can do this. However, setting the the owner isnt enough. because you're accessing a root placed file in a root only access folder. You need to give your self full permissions. To make your self like root for that file only you need to ...


1

I downloaded Android Studio, too, and for me, every single file in /bin belongs to me and not to root. Maybe try changing that with chown and run it again.


3

see http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-41-on-ubuntu This tutorial tells you in detail how to install Glassfish 4.1 on Ubuntu 14.04 LTS server and it should also work for 14.10 and newer versions of Ubuntu. It also cover some security concerns. Basically, to answer you questions: you can't run it on port 80 unless you run it ...


1

You can: Make your home directory world-readable and writeable. Login into his account. Move your files to his directory. Change ownership of said files. Logout of his account. Revert permissions of your home directory. Detailed Step-by-Step Guide Assume you're becko and you want to move the files to bob's home directory. Thus the paths for your homes ...


0

Actually we may need some more information. For example, you don't need to know the root password to use sudo. If your user is in sudo group you can use sudo with your user's regular password. So, If this is the case: sudo mv file_to_move /home/desired_user If you can't use sudo you can write a simple bash script to copy the file with scp and after that ...


0

You don't need the root's password for sudo, you need your password; in fact, there is no root password in a normal Ubuntu installation. But, if you can't, or don't want to use sudo, you could make sure the file and it's directory have read/write (modify) permissions for everyone, then log in as the other person, and move it normally. Or, make a directory ...


1

Maybe you're doing the things in the wrong order. When you create a file system with mkfs.ext4, everything inside it is owned by user root and group root with your system default permissions set. When you mount that file system on a directory, you see file system permissions and owner, regardless of the original owner and permissions on that directory. So ...


-1

It`s manual - "How create EXT4 partition" http://superuser.com/questions/643765/creating-ext4-partition-from-console After you can add it on FSTAB. Add next text in end of file /etc/fstab: /dev/nvme0n1p1 /media/data ext4 defaults 0 2 Where /dev/nvme0n1p1 - your physical device, /media/data - your mountpoint. After use command mount -a for ...


3

For starters: 9.10 is pretty old and has so many security issues you really really need to update that system to at least 12.04. 9.10 is not even an LTS so why you have not is beyond me. Besides that I have some questions ... Care to explain this message? -bash: /usr/bin/mint-fortune: Permission denied As far as I know the package "mintsystem" is part ...


1

The owner of the svn repository needs to be changed by: sudo chown --recursive camilstaps:plugdev /Path/To/Dir/* The FAT partition needs to be mounted using: UUID=EA08-6773 /media/data vfat gid=1000,uid=1000,dmask=027,fmask=137,nosuid,nodev,users 0 2


4

Try without the /dev/sda6 - that's a block device and not a directory, which is presumably mounted at /media/david/desktop/.


0

If your home directory is encrypted, then this is a duplicate of Error when running binary with root setuid under encrypted home directory. If it's not (or your entire drive is encrypted, which is different), then you can fix this like this: $ ll ~/.juniper_networks/network_connect/ncsvc -rwx--x--x 1 mvorburger mvorburger 1274492 Feb 14 14:14 ncsvc $ sudo ...


0

What are MS Windows/NTFS permissions and how they work: https://msdn.microsoft.com/en-us/library/bb727008.aspx http://www.windowsecurity.com/articles-tutorials/authentication_and_encryption/Understanding-Windows-NTFS-Permissions.html Essentially: access control list, saying "Allow" "read/write/execute/etc" for "some windows user or a group" windows users ...


3

Solution You have altered permissions to your home folder. To change the permissions back, login into the text console ,Ctrl+Alt+F2 (or any other F key from 1 to 6 ), then loginn as root with sudo su and do chmod 755 ~/ Explanation In the original command that you ran there is space between ~/ and /Amazon/qwiklab-133-5018.pem. Shell treats them at two ...


0

All of the parameters of the following how-to are explained in the official Ubuntu documentation for fstab Insert the USB drive Go to a terminal and type sudo blkid and you should receive the following output: /dev/sdb1: LABEL="BACKUP" UUID="mmmmmmmm-nnnn-oooo-pppp-qqqqqqqq" TYPE="szFileSystem" If the label does not say "BACKUP", you made a mistake in ...


0

By default when you install Ubuntu you should not know root password. It exists, but user should not know it. An admin, of course, could choose to alter the password with sudo passwd but generally it should not be necessary, unless you know what you're doing and why you're doing it. A file that contains information on all user passwords is /etc/shadow and ...


2

You can use the passwd command: # passwd -S root P 11/04/2014 -1 -1 -1 -1 # passwd -l root passwd: password expiry information changed. # passwd -S root L 11/04/2014 -1 -1 -1 -1 # passwd -d root passwd: password expiry information changed. # passwd -S root NP 11/04/2014 -1 -1 -1 -1 From man 1 passwd: -S, --status Display account status ...


0

Easy. Hit Ctrl+Alt+F1. This will bring to a separate terminal. Try to login as root by typing root as your login and providing the password. If the root account is enabled, the login will work. If the root account is disabled, the login will fail. To get back to your GUI, hit Ctrl+Alt+F7.


1

One possibility is to look into /etc/passwd by entering grep root /etc/passwd It should show a line starting like root:x: ...... where the x indicates that encrypted passwords are stored in the shadow file. If this is the case, we look into it by running sudo grep root /etc/shadow (shadow file needs sudo to be opened!) You should get a line beginning ...


2

From this SO answer: You can use umask() immediately before the fopen() call, but umask shouldn't be used if you're on a multi-threaded server - it'll change the mask for ALL threads (e.g. this change is at the process level), not just the one that you're about to use fopen() in. e.g. $old = umask(000); fopen('foo.txt', 'w'); // creates a ...


3

The default umask is 022, which allows group and others read permissions (and execute, where applicable) (or 002 if User Private Groups are enabled). If you have a problem with that being the default, file a bug. If you want to change the default, edit /etc/login.defs and change UMASK 022 to UMASK 077 And then do: chmod og-rx -R ~


2

If using the graphical interface or the adduser command to create the users, you can modify this in the file /etc/adduser.conf as explained in the manpage, by changing DIR_MODE from 0755 to 0700 or whatever you want. Also, for useradd, see this answer in SuperUser's forum.


0

When debugging PHP code that executes external scripts (R, bash, ...) the easiest thing to do is to install php-cli sudo apt-get install php-google-api-php-client php-cli means "PHP Command Line Interface". As the name suggests, it's is a way of using PHP from the terminal. then execute the script using /usr/bin/php -q <?php YourPHPCodeHere; ?> ...


0

The way of doing it as described in the question is correct. However, when you update the groups, the permissions of the current process, including your shell, are not updated. So in my case groups (current shell started by bob before the groups were changed) and groups bob (current permissions of user bob) showed different results: $whoami bob $ groups ...


0

You can edit your .bashrc file on home directory and add the line PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" as above.


0

I had the same problem, but I realised that you can't start and use MySQL from XAMPP while it is running. I think you have to stop it first (not using XAMPP command)


2

Sounds like your PATH variable is knackered. /etc/environment should read something like this (this is taken off a 12.04 server): PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" Fix this and you'll fix your problem.


1

the "vagrant" user will not have permissions to do anything in /root because it will have 0700 perms. Therefore anything in /root or in any subdirectory under /root etc will not be accessible by any use other than root. Prefix it with sudo and it should work. This is the correct setup and I strongly recommend that you leave /root's perms as 0700. Don't ...


1

I managed to solve this problem by unmounting all USB disks I had plugged in and deleting the /media/username directory. Then, when I plug in my USB stick again, the directory gets re-created and all is good.


0

Note that despite the name, vsftpd is NOT an SFTP server, it's a plain old FTP protocol server. SFTP is usually handled by the ssh daemon. So any config changes you do in vsftpd will not affect SFTP transfers. The file will be owned by whoever uploaded the file. You may want to check your SFTP client's options for ownership and permission preservation ...


0

Your no-root user may not be in the plugdev group. You have to be part of the plugdev group to access external storage. Check it with cat /etc/group if you don't see the username in the plugdev group add it with usermod -a -G plugdev username .


1

I can't say this will work for everyone obviously but I did get Google Earth PRO to launch on Ubuntu 14.04 after following a few suggestions already posted so thought I'd summarize. In the end not all of this seems like it was necessary but just saying what I did in case some part is actually necessary. First you can download the GoogleEarth Pro binary ...


0

There's also a file called install_unix which you have to apply the chmod +x trick to. Can't remember which folder it's in, but it'll be clear straight away as it's not in a subfolder. Also, when you're selecting which components to install, there's a reason the licence manager is automatically not selected. Please leave it unselected - it'll just cause ...



Top 50 recent answers are included