LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-21-2023, 06:55 AM   #1
stevephares
LQ Newbie
 
Registered: Oct 2023
Posts: 2

Rep: Reputation: 0
Admin issues (chmod) on a Rocky 9 Linux box... logged in as root.


My first post.

I have check forums... Virtual & Cloud / Desktop & Server, no posts seemed to have my answer, so I am posting this in General. Please move this to the proper forum at your convnince. Thank You in advance.

I am not an newbie. My first Unix/*nix was Santa Cruz Operating Systems some #of years ago but I am still perplexed.

I am hard logged in as root (uid=0, gid=0) on a Rocky 9 Linux Box.
I am attempting to perform a simple chmod on a "the_file".bundle file. No success.

"the_file" is actually...
VWware-Workstation-Full-17.0.2-21581411.x86_64.bundle
It's just easier to type "the_file"

My command line actions so for are as thus

# mnt /dev/sda1 /mnt
# cd /mnt
# chmod 744 "the_file"
No error message thrown.

but the following #ls -l
shows

# -rw-r--r-- root root time/date stamp "the_file"

No execute bit set.

I have also copied "the_file" from the /mnt mount point to the actual hard drive. Same results so I don't belive it is an issue with the USB stick.

Perhaps, but I doubt it, could it be because it is a .bundle file or it Vmware??? file.
It should not. To the OS it's just another file. I an still perplexed.

Any Input, insight or advice would be Greatly welcomed.

Thank You
Steven
 
Old 10-21-2023, 08:06 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 942

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Probably fat mounted with noexec option, remount with -o exec
 
1 members found this post helpful.
Old 10-21-2023, 01:51 PM   #3
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,806

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
Does noexec prevent from setting an x permission??
IMHO noexec only makes the exec() syscalls ignore the x.

Maybe there is another special mount option or a special filesystem type?
Code:
mount -v | grep /mnt
 
1 members found this post helpful.
Old 10-21-2023, 08:33 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Yes. When you say # mnt /dev/sda1 /mnt, you don't suggest what filesystem might "own" that particular device. If perhaps it is not a "native Linux" filesystem, or if there are particular options in fstab, this could be an explanation for what you are now seeing.
 
Old 10-27-2023, 03:08 PM   #5
stevephares
LQ Newbie
 
Registered: Oct 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks all for the input. I have an update.

#cat /etc/fstab returns

fs_spec fs_file fs_vfstype fs_mnttype fs_freq fs_passno
/dev/mapper/rl-public /public xfs defaults 0 0

I downloaded a 2nd copy of "the_file".bundle. There WAS a difference in the Byte count.

I moved "the_file" to /public and executed it. It added WMware-Workstation-Full-17.0.2...... to Apps.
Launched Workstation app. It returned, requires GCC 11.3.1. Downloaded and installed the Compiler.
I even copied a text book add2nums.c to /public. Compiled the .c file & run the a.out file successfully.
At least printf() & scanf() work. So I re-launched the VMware-Workstation & it returned this time with...
unable to install all modules, see log /tmp/wmware-root/vmware-226609.log

cat'd the lof file, mostly rotine stuff, however a few lines caught my attenion.

line 12: appLoader VMDEVEL not set
13: Using configuration file: /etc/vmware/config
38: appLoader Setup LD_LIBRAY_PATH
.
.
.

I cat'd /etc/vmware/config. Again mostly routine stuff. But it did show
vmware.fullpath = /usr/bin/vmware.

Thought perhaps the apps got confused, so I ran /usr/bin/vmware mannually. Same Results.

Again, any more inpuut would be greatly welcomed.
Thank you



















.
 
Old 10-29-2023, 05:51 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux - Virtualization and Cloud> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Upgrade from Rocky Linux 8 to Rocky Linux 9 LXer Syndicated Linux News 0 08-06-2022 11:53 AM
LXer: Alma and Rocky Linux release 8.5 builds, Rocky catches up with secure boot LXer Syndicated Linux News 0 11-17-2021 11:15 AM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 01:10 PM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration